/* Reset Styles */
*, ::before, ::after {
    margin: 0;
    padding: 0;
}

/* Hide Alpine.js cloaked elements to prevent initial flash */
[x-cloak] { display: none !important; }

* {
  font-family: 'Montserrat', sans-serif;
}

a:hover {
    text-decoration: none;
}

/* Global Colours */
:root {
    /* --primary-color: #009074;
    --secondary-color: #8ac4b2; */
    --third-color: #dbe1ef;
    --background-color: #ebeef4;
    --text-color: #1a1a1a;
    --tex-color-2: #9c9c9c;
    --orange-color: #dfb96d;
    --text-hover-color: #5c5c5c;
    --primary-color: #dfb96d;
    --primary-shade-1: #e8cd96;
    --primary-shade-2: #f1e1c0;
    --secondary-color: #6f3700;
    --text-color-1: #333;
    --btn-primary: #6f3700;
    --btn-primary-hover: #5a2d00;
    --btn-primary-active: #4a2400;
      /* Primary Color Palette - Warm Gold */
  --color-primary-50: #fdf7ea;
  --color-primary-100: #faebce;
  --color-primary-200: #f5dba9;
  --color-primary-300: #f0ca83;
  --color-primary-400: #ebbb6a;
  --color-primary-500: #dfb96d; /* Base */
  --color-primary-600: #c59f4c;
  --color-primary-700: #a38034;
  --color-primary-800: #836622;
  --color-primary-900: #6a5419;

  /* Secondary Color Palette - Deep Chestnut */
  --color-secondary-50: #f6eee9;
  --color-secondary-100: #ecd8ca;
  --color-secondary-200: #d9ad8f;
  --color-secondary-300: #c1835b;
  --color-secondary-400: #a95f2e;
  --color-secondary-500: #6f3700; /* Base */
  --color-secondary-600: #5c2e00;
  --color-secondary-700: #4a2500;
  --color-secondary-800: #3a1d00;
  --color-secondary-900: #2c1600;

  /* Neutral Palette - Soft Cool Gray (based on --third-color and --background-color) */
  --color-gray-50: #f6f8fc;
  --color-gray-100: #ebeef4; /* Base background */
  --color-gray-200: #dbe1ef; /* Third color */
  --color-gray-300: #c9d0df;
  --color-gray-400: #a7afc0;
  --color-gray-500: #7f8999;
  --color-gray-600: #5f6573;
  --color-gray-700: #454b55;
  --color-gray-800: #2e3238;
  --color-gray-900: #1b1d21;

  /* Accent Colors - Subtle Gold & Chestnut Mix */
  --color-accent-50: #fffaf0;
  --color-accent-100: #fef3da;
  --color-accent-200: #fce3b1;
  --color-accent-300: #facc83;
  --color-accent-400: #f5b74f;
  --color-accent-500: #e6a031;
  --color-accent-600: #c27c16;
  --color-accent-700: #9d5f0e;
  --color-accent-800: #7b460a;
  --color-accent-900: #63370a;

  /* Semantic Colors */
  --color-success-50: #f0fdf4;
  --color-success-100: #dcfce7;
  --color-success-200: #bbf7d0;
  --color-success-300: #86efac;
  --color-success-400: #4ade80;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  --color-success-700: #15803d;
  --color-success-800: #166534;
  --color-success-900: #14532d;

  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;
  --color-warning-900: #78350f;

  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error-300: #fca5a5;
  --color-error-400: #f87171;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;

  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-200: #bfdbfe;
  --color-info-300: #93c5fd;
  --color-info-400: #60a5fa;
  --color-info-500: #3b82f6;
  --color-info-600: #2563eb;
  --color-info-700: #1d4ed8;
  --color-info-800: #1e40af;
  --color-info-900: #1e3a8a;

  /* Surface and Background Colors */
  --color-background: #ebeef4;
  --color-background-alt: #dbe1ef;
  --color-surface: #ffffff;
  --color-surface-alt: #f8f9fb;
  --color-surface-elevated: #ffffff;

  /* Text Colors */
  --color-text-primary: #1c1c1e;
  --color-text-secondary: #4e4e56;
  --color-text-muted: #7a7a89;
  --color-text-inverse: #ffffff;

  /* Borders */
  --color-border: var(--color-gray-200);
  --color-border-light: var(--color-gray-100);
  --color-border-dark: var(--color-gray-300);
  --color-border-focus: var(--color-primary-500);

  /* Interactive Elements */
  --color-link: var(--color-primary-600);
  --color-link-hover: var(--color-primary-700);
  --color-link-visited: var(--color-primary-800);
}

/* =============================================================================
    Layout
   ============================================================================*/

.app-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-secondary-500);
    padding: 10px 20px;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo img {
    height: 40px;
    width: auto;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 24px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Ensure hamburger menu is always clickable */
.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mobile-menu-toggle:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

/* Hamburger to X animation for mobile-menu-toggle */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.sidebar {
    background-color: var(--color-secondary-500);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    width: 220px;
    gap: 10px;
    z-index: 9999;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: none;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    border-radius: 25px;
    height: 80px;
    margin-top: 8px;
    transition: all 0.3s ease-in;
}

.sidebar-link a.active {
    background-color: white;
    border-radius: 25px;
}

.sidebar-link a.active .sidebar-icon i {
    color: var(--color-secondary-500);
}

.sidebar-link a.active .sidebar-title {
    color: var(--color-secondary-500);
}

.sidebar-link:hover {
    background-color: white;
}

.sidebar-link:hover .sidebar-icon i {
    color: var(--color-secondary-500);
}

.sidebar-link:hover .sidebar-title {
    color: var(--color-secondary-500);
}

.sidebar-link img {
    width: 80%;
    margin-top: 3rem;
}

.sidebar-link:nth-child(1):hover {
    background-color: transparent;
}

.sidebar-link:nth-child(2){
    margin-top: 3rem;
}

.sidebar-link a {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
}

.sidebar-logout-btn {
    background-color: transparent;
    border: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.sidebar-link .sidebar-icon i {
    font-size: 30px;
    color: white;
}

.sidebar-link .sidebar-title {
    font-size: 18px;
    color: white;
}

.sidebar-link .sidebar-icon-rotated {
    transform: rotate(90deg)
}

.main-area {
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-primary-300);
}

@media (max-width: 991.98px) {
    .main-area {
        margin-left: 70px;
    }
    .sidebar {
        width: 70px;
        gap: 50px;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-link {
        justify-content: center;
    }

    .sidebar-link a,
    .sidebar-logout-btn {
        padding: 0;
    }

    .sidebar-link .sidebar-icon i {
        font-size: 24px;
    }

    .sidebar-link img {
        width: 40px;
        margin-top: 1rem;
    }
    .sidebar-link{
        height: fit-content;
    }

    .sidebar-link:hover {
        background-color: white;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .mobile-header {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 10000 !important;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        left: 0;
        position: fixed;
        top: 0;
        z-index: 9999;
        /* Hide sidebar on mobile - unified menu in navbar takes over */
        display: none !important;
    }

    .sidebar.active {
        transform: translateX(0);
        /* Keep sidebar hidden - unified menu handles navigation */
        display: none !important;
    }

    .sidebar-header {
        display: flex;
    }

    .sidebar-content {
        padding: 0;
    }

    .sidebar-link {
        width: 90%;
        height: 60px;
        margin: 5px 0;
        justify-content: flex-start;
        padding: 0 20px;
    }

    .sidebar-link a,
    .sidebar-logout-btn {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
    }

    .sidebar-link .sidebar-icon {
        margin-right: 15px;
    }

    .sidebar-link .sidebar-title {
        display: block;
        font-size: 16px;
        margin: 0;
    }

    .sidebar-link .sidebar-icon i {
        font-size: 20px;
    }

    .main-area {
        margin-left: 0;
        margin-top: 60px;
    }

    .page-navbar {
        position: sticky;
        top: 60px;
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .mobile-header {
        padding: 8px 15px;
    }

    .mobile-logo img {
        height: 35px;
    }
}

/* =============================================================================
    Page Navbar
   ============================================================================*/
.page-navbar {
    background-color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.page-nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-500);
}

.page-navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.page-navbar-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-primary-500);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.page-navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.page-navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.page-navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.page-navbar-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.page-navbar-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-navbar-links a:hover,
.page-navbar-links a.active {
    color: var(--color-primary-500);
}

.page-navbar-user {
    position: relative;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--color-primary-50);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-card:hover {
    background-color: var(--color-primary-100);
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.user-subscription {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.user-avatar i {
    font-size: 2rem;
    color: var(--color-primary-500);
}

.dropdown-chevron {
    transition: transform 0.3s ease;
}

.dropdown-chevron.rotated {
    transform: rotate(180deg);
}

/* Mobile responsive styles for page navbar */
@media (max-width: 768px) {
    .page-navbar {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .page-nav-title {
        font-size: 1.2rem;
        order: 1;
        flex: 1;
    }

    .page-navbar-toggle {
        display: flex;
        order: 2;
    }

    .page-navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .page-navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .page-navbar-links a {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
    }

    .page-navbar-user {
        order: 3;
    }

    .user-profile-card {
        padding: 8px 12px;
    }

    .user-name {
        font-size: 0.8rem;
    }

    .user-subscription {
        font-size: 0.7rem;
    }

    .user-avatar i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-navbar {
        padding: 8px 15px;
    }

    .page-nav-title {
        font-size: 1.1rem;
    }

    .user-info {
        display: none;
    }

    .user-profile-card {
        padding: 8px;
    }
}

/* =============================================================================
    Navbar
   ============================================================================*/
.nav {
    height: 60px;
}
.nav .btn {
    background-color: var(--text-color);
    color: #fff;
    font-size: 20px;
    border-radius: 999px;
    margin-left: 1rem;
    margin-top: -5px;
    transition: .3s ease-in-out;
}
.nav .btn:hover {
    background-color: var(--tex-color-2);
    box-shadow: -1px 1px 20px 0px var(--tex-color-2);
}
.nav a.link {
    margin-left: 20px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: .1rem;
    padding: 8px 10px;
    transition: .3s ease-in-out;
    border-bottom: 3px solid #fff;
}
.nav a.link:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}
/* Hamburger menu styles */
.nav .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav .hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Adjustments to existing CSS */
@media (max-width: 992px) {
    .nav {
        position: relative;
    }

    .nav .logo {
        padding: 10px 0;
    }

    .nav .logo img {
        max-height: 40px;
    }

    .nav .links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav .links a.link {
        margin: 10px 0;
        border-bottom: none;
        text-align: center;
    }

    .nav .links a.btn {
        margin: 10px auto;
        display: inline-block;
    }

    .nav .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: 15px;
    }
}

/* =====================================================================
    Footer
========================================================================*/
footer {
    width: 100%;
}
.footer {
    padding-top: 20px;
    background-color: var(--text-color);
    color: #fff;
}
.footer p a {
    text-decoration: none;
    color: var(--tex-color-2);
}
.footer .social-links {
    margin-top: 2.5rem;
    height: fit-content;
}
.footer .social-links > a {
    color: var(--tex-color-2);
    height: 500px;
    width: 500px;
    margin-right: 10px;
    font-size: 20px;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid var(--tex-color-2);
    transition: 0.3s ease-in-out;
}
.footer .social-links > a:hover {
    color: var(--orange-color);
    border: 1px solid var(--orange-color);
}
footer .btn {
    border: 1px solid var(--orange-color);
    margin-right: 10px;
    border-radius: 999px;
    background-color: var(--orange-color);
}
footer .btn:hover {
    background-color: var(--text-color);
    border: 1px solid var(--orange-color);
}
footer a.btn {
    color: #fff !important;
}
.footer .company-links{
}
.footer .company-links a:hover {
}
.footer .bottom-sec {
    color: var(--tex-color-2);
    padding: 20px 0;
}
.footer .bottom-sec a {
    color: var(--tex-color-2);
    text-decoration: none;
    transition: .3s ease-in-out;
    margin-left: 15px;
    color: var(--tex-color-2);
}
.footer .bottom-sec a:hover {
    color: var(--primary-color);
}
.main-bg {
    background-color: var(--color-primary-300);
    margin-left: -3rem;
    width: fit-content;
    min-height: 100vh;
}
/* =====================================================================
    Landing Page
========================================================================*/
.landing-page {
    /* min-height: 100vh; */
    /* background-color: var(--background-color); */
    position: relative;
}
/* .landing-page:before {
    background: no-repeat 23vw 30vh url("https://assets.codepen.io/518555/sparkles1.svg"), no-repeat right 25vw bottom 30vh url("https://assets.codepen.io/518555/sparkles4.svg"), no-repeat 40vw 30vh / 35vw url("https://assets.codepen.io/518555/blobStripe.svg");
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 50px;
    width: 100%;
    z-index: -1;
}
.landing-page:after {
    background: no-repeat 25vw 40vh / 30vw url("https://assets.codepen.io/518555/blobSolid.svg");
    content: '';
    height: 100%;
    left: 0;
    opacity: 0.8;
    position: absolute;
    top: 50px;
    width: 100%;
    z-index: -2;
} */

.landing-sec1 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.landing-sec1 .input-group span {
    background-color: #fff;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
    border-color: #fff;
}
.landing-sec1 .input-group input {
    border-left: 1px solid #fff;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    height: 65px;
    color: var(--tex-color-2);
    font-size: 28px;
    border-color: #fff;
}

.landing-sec1 .form-control:focus {
    border-left: none;
    box-shadow: none;
}
.landing-sec1 input::placeholder {
    color: var(--tex-color-2);
    opacity: 1;
}
.landing-sec1 .input-group {
    transition: 0.3s ease-in-out;
    border: 1px solid var(--orange-color);
    border-radius: 999px;
}
.landing-sec1 .input-group:hover {
    box-shadow: -1px 1px 20px 0px var(--tex-color-2);
}
.landing-sec2 {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.landing-sec2 .book-landing-cover {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    width: 220px;
}
.landing-sec2 .book-landing-cover img {
    border-radius: 15px;
}
.landing-sec2 .book-landing-cover:hover {
    box-shadow: -1px 1px 20px 0px var(--tex-color-2);
}
.landing-sec2 .book-landing-player {
    background-color: var(--text-color);
    width: 400px;
    height: 600px;
    overflow: hidden;
    margin-left: 5%;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s ease-in-out;
}
.landing-sec2 .book-landing-player .title {
    color: #fff;
    font-size: 25px;
    text-align: center;
    font-weight: 500;
}
.landing-sec2 .book-landing-player .author {
    color: var(--tex-color-2);
    font-size: 20px;
}
.landing-sec2 .book-landing-player:hover {
    box-shadow: -1px 1px 20px 0px var(--tex-color-2);
}
.landing-sec2 .book-landing-player .cover {
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 250px;
    width: 250px;
    border-radius: 24px;
    /* border-radius: 50%; */
    position: relative;
    border: .5px solid #808080;
}

.landing-sec2 .book-landing-player img {
    width: 250px;
    height: 380px;
}
.landing-sec2 .circle {
    background-color: #fff;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    position: absolute;
    top: 80px;
    border: .5px solid #808080;
}

.landing-sec2 .book-landing-player .media-controls {
    align-items: center;
    /* background: #fffaee;
    border: 1px solid #fff3eb; */
    /* border-radius: 24px; */
    color: var(--tex-color-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px;
    max-width: calc(100% - 24px * 2);
    padding: 3px 24px;
    position: relative;
    width: 350px;
}
.landing-sec2 .book-landing-player .media-controls:after {
    border-radius: 24px;
    /* box-shadow: 0 2px 2px rgba(255, 107, 0, 0.25), 0 4px 4px rgba(255, 107, 0, 0.2), 0 8px 8px rgba(255, 107, 0, 0.15), 0 16px 16px rgba(255, 107, 0, 0.1), 0 24px 24px rgba(255, 107, 0, 0.05); */
    content: '';
    height: 100%;
    left: 0;
    mix-blend-mode: multiply;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}
.landing-sec2 .book-landing-player .media-buttons {
    display: flex;
    flex-wrap: nowrap;
}
.landing-sec2 .book-landing-player .media-button {
    background-color: transparent;
    border: none;
    align-items: center;
    border-radius: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.landing-sec2 .book-landing-player .media-button i {
    font-size: 30px;
    color: #fff;
}
.landing-sec2 .book-landing-player .media-button span {
    color: var(--tex-color-2);
}
@media (min-width: 421px) {
    .landing-sec2 .book-landing-player .media-button {
      padding: 12px;
    }
  }
  .landing-sec2 .book-landing-player  .button-icons {
    background-color: var(--color-primary-100);
    border-radius: 100%;
    margin-bottom: 4px;
    margin-top: auto;
    padding: 16px;
  }
  .landing-sec2 .book-landing-player .back-button .button-icons,
  .landing-sec2 .book-landing-player .skip-button .button-icons {
    background-color: transparent;
    color: #919191;
  }
  .landing-sec2 .book-landing-player .rewind-button .button-icons,
  .landing-sec2 .book-landing-player .fast-forward-button .button-icons {
    background: linear-gradient(to bottom left, var(--color-primary-50), var(--color-primary-100));
    color: #838383;
  }
  .landing-sec2 .book-landing-player .landing-sec2 .book-landing-player .play-button .button-icons {
    background: linear-gradient(to bottom left, var(--color-primary-50), var(--color-primary-100));
    border: 1px solid var(--color-primary-200);
    box-shadow: -1px 1px 1px rgba(223, 185, 109, 0.25), 1px -1px 1px rgba(255, 255, 255, 0.25), -2px 2px 2px rgba(223, 185, 109, 0.2), 2px -2px 2px rgba(255, 255, 255, 0.2), -4px 4px 4px rgba(223, 185, 109, 0.15), 4px -4px 4px rgba(255, 255, 255, 0.15), -8px 8px 8px rgba(223, 185, 109, 0.1), 8px -8px 8px rgba(255, 255, 255, 0.1), -16px 16px 16px rgba(223, 185, 109, 0.05), 16px -16px 16px rgba(255, 255, 255, 0.05);
    color: var(--color-primary-600);
    margin-bottom: 8px;
    padding: 24px;
  }
  .landing-sec2 .book-landing-player .button-text {
    margin-top: auto;
  }
  .landing-sec2 .book-landing-player .media-progress {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .landing-sec2 .book-landing-player .progress-bar-wrapper {
    background-color: transparent;
    border-radius: 12px;
    box-shadow: inset -1px 1px 1px rgba(223, 185, 109, 0.25), inset 1px -1px 1px rgba(255, 255, 255, 0.25), inset -2px 2px 2px rgba(223, 185, 109, 0.2), inset 2px -2px 2px rgba(255, 255, 255, 0.2), inset -4px 4px 4px rgba(223, 185, 109, 0.15), inset 4px -4px 4px rgba(255, 255, 255, 0.15), inset -8px 8px 8px rgba(223, 185, 109, 0.1), inset 8px -8px 8px rgba(255, 255, 255, 0.1), inset -16px 16px 16px rgba(223, 185, 109, 0.05), inset 16px -16px 16px rgba(255, 255, 255, 0.05);
    height: 12px;
    margin-bottom: 8px;
    margin-top: 24px;
    position: relative;
    width: 100%;
  }
  .landing-sec2 .book-landing-player .progress-bar {
    background: linear-gradient(to right, var(--primary-color), #fcfaf9);
    border-radius: 12px;
    box-shadow: none;
    height: 12px;
    width: 44%;
  }



/* =====================================================================
    Auth Pages
========================================================================*/
.auth .row {
    margin: 0;
}
.auth-sec1 {
    width: 100%;
    overflow: hidden;
    height: 100vh;
}
.auth-sec2 {
    height: 100vh;
    display: flex;
    align-items: center;
}
.auth-box {
    background-color: #fff;
    padding: 25px 15px;
    border-radius: 25px;
    width: 43%;
    margin-left: 10%;
    border: 1px solid var(--primary-color);
    transition: .3s ease-in-out;
}
.auth-box:hover {
    box-shadow: -1px 1px 5px 0px var(--tex-color-2);
    border: 1px solid #fff;
}
.auth-box p {
    font-size: 20px;
}
.auth-box p a {
    color: var(--primary-color);
}
.auth-box .title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.8rem;
    font-size: 30px;
}
.auth-box .fw-bold {
    font-weight: 400 !important;
}
.auth-box .forgot {
    float: right;
}
.auth-box a.forgot {
    color: var(--text-color);
    font-weight: 400;
}
.auth-box a.forgot:hover {
    color: var(--primary-color);
}
.auth-box input {
    margin-bottom: 1rem;
    height: 55px;
    border-radius: 18px;
}
.auth-box input:focus {
    box-shadow: none;
    border: 1px solid var(--orange-color);
}
.auth-box .btn {
    background-color: var(--text-color);
    color: #fff;
    height: 55px;
    border-radius: 999px;
    width: 100%;
    font-size: 23px;
    transition: .3s ease-in-out;
}

.auth-box .btn .spinner-border {
    vertical-align: middle;
    font-size: 23px;
    margin-top: 5px;
}

.auth-box .btn:hover {
    background-color: var(--text-hover-color);
}
.auth-box .btn a {
    color: #fff;
    text-decoration: none;
}
.auth-box .google-btn {
    background-color: #fff;
    border: 1px solid #ced4da;
    color: var(--text-color);
    transition: .3s ease-in-out;
}
.auth-box .google-btn:hover {
    background-color: var(--text-color);
    color: #fff;
}
.auth-box hr.divider {
    height: 1px;
    margin: 30px 0;
    padding: 0;
    overflow: visible;
    border: none;
    background-color: #e7e7e9;
    text-align: center;
}
.auth-box hr.divider::after {
    display: inline-block;
    position: relative;
    top: -7px;
    padding: 0 16px;
    background: #fff;
    content: 'Sign in with Email';
}
/* =====================================================================
    Warning Pages
========================================================================*/
.warn-section {
    background-color: #ebeff8;
    min-height: 80vh;
}
.warn-section .alert-warning {
    background-color: white;
    border: none;
    border-radius: 18px;
}
.warn-section .alert-warning i {
    font-size: 35px;
    color: var(--orange-color);
}
.warn-section .alert-warning p {
    font-size: 20px;
}
.warn-section .alert-warning button {
    background-color: var(--text-color);
    color: white;
    border-radius: 18px;
    transition: all .3s ease-in;
}
.warn-section .alert-warning button:hover {
    background-color: var(--text-hover-color);
}

/* =====================================================================
    Home Styles
========================================================================*/

.home .row {
    margin: 0;
}
.menu-content {
    min-height: 100vh;
    background-color: #ebeff8;
}
.main-content {
    /* background-color: #f4f5fc; */
    min-height: 100vh;
}
.menu-box {
    padding: 10px;
    border-radius: 25px;
    margin-bottom: 1rem;
    width: 70%;
    transition: all .3s ease-in-out;
    border: 1px solid #ebeff8;
}
.menu-box a {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.menu-box:hover {
    cursor: pointer;
    background-color: #fff;
    color: var(--orange-color);
    border: 1px solid var(--orange-color);
}
.menu-box.active {
    background-color: #fff;
    color: var(--primary-color);
}

.menu-box .menu-icon i {
    font-size: 30px;
    color: var(--primary-color);
}
.menu-box .menu-icon-rotated {
    transform: rotate(90deg)
}
.menu-box a .menu-title {
    font-size: 18px;
    margin-top: .8rem;
    text-decoration: none;
}
.menu-box button {
    background-color: transparent;
    width: 100%;
    border-radius: 25px;
    border: none;
}
.categories-sec {
    display: flex;
}
.category-box {
    margin-right: 10px;
    padding: 20px;
    text-align: center;
    border-radius: 25px;
    width: 120px;
    text-decoration: none;
    transition: all .3s ease-in-out;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.category-box:hover {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}
.category-box i {
    font-size: 20px;
}

.books-wrap {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Mobile responsive styles for books grid */
@media (max-width: 768px) {
    .books-wrap {
        gap: 15px;
        justify-content: center;
    }

    .book-item {
        width: calc(50% - 7.5px);
        min-width: 140px;
        margin: 0 !important;
    }

    .book-cover {
        height: 200px;
    }

    .book-title {
        font-size: 0.9rem;
    }

    .book-author {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .books-wrap {
        gap: 10px;
    }

    .book-item {
        width: calc(50% - 5px);
        min-width: 120px;
    }

    .book-cover {
        height: 180px;
    }

    .book-title {
        font-size: 0.8rem;
    }

    .book-author {
        font-size: 0.7rem;
    }
}
.book {
    width: 200px;
    border-radius: 18px;
    overflow: hidden;
    background-color: #fff;
    transition: all .3s ease-in-out;
    margin-right: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    transition: all .3s ease-in;
    padding: 0;
}
.book:hover {
    cursor: pointer;
}
.book:hover .cover img {
    transform: scale(1.1);
}
.book a {
    text-decoration: none;
}
.book .cover {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.book .cover img {
    width: 100%;
    transition: all .3s ease-in;
}

.book .content {
    padding: 10px;
}
.book .title {
    font-weight: 500;
    color: var(--text-color);
    font-size: 20px;
}
.book .author {
    color: var(--tex-color-2);
}
.book .player {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -1px 1px 10px 0px var(--tex-color-2);
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    transition: all .3s ease-in-out;
}

.book .info {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -1px 1px 10px 0px var(--tex-color-2);
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #fff;
    transition: all .3s ease-in-out;
}
.book .player:hover {
    background-color: var(--color-secondary-500);
}
.book .play-button {
    color: white !important;
    font-size: 20rem;
}
.book .player i {
    font-size: 25px;
    color: var(--primary-color);
}
.book-player {
    background-color: var(--text-color);
    width: 100%;
    overflow: hidden;
    margin-left: 5%;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s ease-in-out;
}
.book-player .title {
    color: #fff;
    font-size: 25px;
    text-align: center;
    font-weight: 500;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
.book-player .author {
    color: var(--tex-color-2);
    font-size: 20px;
    margin-bottom: 5px;
}

.book-player .cover {
    width: 60%;
    overflow: hidden;
    border-radius: 18px;
}
.book-player .cover img {
    width: 100%;
}
.book-player .media {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--tex-color-2);
    /* max-width: calc(100% - 24px * 2); */
    width: 100%;
    padding: 3px 24px;
    position: relative;
}
.book-player .media:after {
    border-radius: 24px;
    content: '';
    height: 100%;
    left: 0;
    mix-blend-mode: multiply;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}
.book-player .media-buttons {
    display: flex;
    justify-content:space-between;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.book-player .media-button-wrap {
    width: 50px;
    text-align: center;
}

.book-player .media-button i {
    font-size: 30px;
    color: #fff;
    transition: all .3s ease-in-out;
}
.book-player .media-button:hover i {
    color: var(--orange-color);
    cursor: pointer;
}
.book-player .media-button-wrap .button-text {
    line-height: 2.5rem;
}
.book-player .media-progress {
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.book-player .progress-bar-wrapper {
    background-color: transparent;
    border-radius: 12px;
    box-shadow: inset -1px 1px 1px rgba(255, 195, 153, 0.25), inset 1px -1px 1px rgba(255, 255, 255, 0.25), inset -2px 2px 2px rgba(255, 195, 153, 0.2), inset 2px -2px 2px rgba(255, 255, 255, 0.2), inset -4px 4px 4px rgba(255, 195, 153, 0.15), inset 4px -4px 4px rgba(255, 255, 255, 0.15), inset -8px 8px 8px rgba(255, 195, 153, 0.1), inset 8px -8px 8px rgba(255, 255, 255, 0.1), inset -16px 16px 16px rgba(255, 195, 153, 0.05), inset 16px -16px 16px rgba(255, 255, 255, 0.05);
    height: 12px;
    margin-bottom: 8px;
    position: relative;
    width: 100%;
}

.book-player .progress-bar {
    background: linear-gradient(to right, var(--primary-color), #fcfaf9);
    border-radius: 12px;
    box-shadow: none;
    height: 12px;
    width: 44%;
}

.home .input-group span {
    background-color: #fff;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
    border-color: #fff;
}
.home .input-group input {
    border-left: 1px solid #fff;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    height: 65px;
    color: var(--tex-color-2);
    font-size: 28px;
    border-color: #fff;
}

.home .form-control:focus {
    border-left: none;
    box-shadow: none;
}
.home input::placeholder {
    color: var(--tex-color-2);
    opacity: 1;
}
.home .input-group {
    transition: 0.3s ease-in-out;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
}
.home .input-group:hover {
    box-shadow: -1px 1px 20px 0px var(--tex-color-2);
}
.page-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.user-info-box {
    display: flex;
    /* align-items: center; */
    height: fit-content;
    padding-top: 5px;
    text-align: right;
}
.user-info-box .name {
    color: var(--primary-color);
}
.user-info-box i {
    font-size: 40px;
    margin-left: 10px;
    color: var(--primary-color);
}
.user-info-box p {
    line-height: .2rem;
    font-size: 14px;
    margin-top: 12px;
}

/* =====================================================================
    Admin Dashboard Page
========================================================================*/
.dashboard-stat {
    background-color: #fff;
    border: 1px solid var(--primary-color);
    transition: .3s ease-in-out;
    color: var(--primary-color);
    width: 33.3%;
    margin-right: 1rem;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-stat i {
    font-size: 30px;
}
.dashboard-stat:hover {
    box-shadow: -1px 1px 5px 0px var(--tex-color-2);
    border: 1px solid #fff;
    color: var(--orange-color);
}

/* Compact Dashboard Stats */
.dashboard-stat-compact {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.bg-primary {
    background: var(--btn-primary);
    color: white;
}

.stat-icon.bg-success {
    background: var(--color-success-500);
    color: white;
}

.stat-icon.bg-warning {
    background: var(--color-warning-500);
    color: white;
}

.stat-icon i {
    font-size: 1.5rem;
}

/* Compact Admin Profile */
.admin-profile-compact {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.admin-profile-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.admin-avatar {
    color: var(--btn-primary);
    font-size: 2.5rem;
    line-height: 1;
}

.admin-profile-compact h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-profile-compact small {
    color: #6b7280;
    font-size: 0.875rem;
}

.upload-wrap {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    padding: 25px 15px;
    border-radius: 25px;
    width: 98%;
    border: 1px solid var(--primary-color);
    transition: .3s ease-in-out;
}
.upload-wrap:hover {
    box-shadow: -1px 1px 5px 0px var(--tex-color-2);
    border: 1px solid #fff;
}
.upload-wrap p {
    margin-top: 8px;
}
.upload-wrap input[type="text"],
.upload-wrap select {
    margin-bottom: 1rem;
    height: 50px;
    border-radius: 18px;
}

/* Admin dropdown styling fixes */
.admin-dropdown,
.upload-wrap select.form-select {
    height: auto !important;
    min-height: 50px;
    padding: 12px 16px;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
}

.admin-dropdown option,
.upload-wrap select.form-select option {
    padding: 8px 12px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    min-height: 40px;
    display: block;
}

/* Ensure dropdown text is fully visible */
.form-select {
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

/* Fix for Bootstrap form-select specifically */
.upload-wrap .form-select {
    height: auto !important;
    min-height: 50px;
    padding: 12px 2.25rem 12px 16px;
    line-height: 1.5;
}
.upload-wrap input:focus,
.upload-wrap select:focus {
    box-shadow: none;
    border: 1px solid var(--orange-color);
    border-left: 1px solid var(--orange-color) !important;
}
.upload-wrap textarea {
    border-radius: 18px;
}
.upload-wrap textarea:focus {
    border: 1px solid var(--orange-color);
    border-left: 1px solid var(--orange-color) !important;
}
.upload-wrap .btn,
.create-admin-btn {
    margin-top: 1rem;
    background-color: var(--text-color);
    color: #fff;
    height: 55px;
    border-radius: 999px;
    width: 100%;
    font-size: 23px;
    transition: .3s ease-in-out;
    border-style: none !important;
}
.upload-wrap .btn:hover,
.create-admin-btn:hover {
    background-color: var(--text-hover-color);
}

.admin-profile {
    background-color: var(--text-color);
    color: #fff;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
}
.admin-profile p {
    line-height: 10px;
}
.admin-profile .icon i {
    font-size: 50px;
}
.admin-profile .name {
    font-size: 25px;
}
.admin-profile .role {
    font-size: 15px;
    color: var(--tex-color-2);
}
.admin-profile .btn {
    color: var(--orange-color);
    transition: .3s ease-in-out;
    border-radius: 999px;
}
.admin-profile .btn:hover {
    background-color: var(--tex-color-2);
    color: #fff;
}

#addAdminModal .modal-content,
#upgradeAccountModal .modal-content,
#editProfileModal .modal-content,
#changePasswordModal .modal-content,
.editAudiobookModal .modal-content {
    padding: 20px;
    border-radius: 18px;
}
#addAdminModal .modal-content .btn,
#upgradeAccountModal .modal-content .btn,
#editProfileModal .modal-content .btn,
#changePasswordModal .modal-content .btn,
.editAudiobookModal .modal-content .btn {
    /* margin-top: 1rem; */
    background-color: var(--text-color);
    color: #fff;
    height: 55px;
    border-radius: 999px;
    width: 100%;
    font-size: 23px;
    transition: .3s ease-in-out;
    border-style: none !important;
}
#addAdminModal .modal-content .btn:hover,
#upgradeAccountModal .modal-content .btn:hover,
#editProfileModal .modal-content .btn:hover,
#changePasswordModal .modal-content .btn:hover,
.editAudiobookModal .modal-content .btn:hover {
    background-color: var(--text-hover-color);
    color: #fff;
}
#addAdminModal .modal-content input,
#upgradeAccountModal .modal-content input,
#editProfileModal .modal-content input,
#changePasswordModal .modal-content input,
.editAudiobookModal .modal-content input {
    margin-bottom: .5rem;
    height: 50px;
    border-radius: 12px;
    width: 100%;
    border-style: none;
    border: 1px solid var(--text-hover-color);
    padding: 10px;
}

/* Mobile responsive styles for modals */
@media (max-width: 768px) {
    #addAdminModal .modal-content,
    #upgradeAccountModal .modal-content,
    #editProfileModal .modal-content,
    #changePasswordModal .modal-content,
    .editAudiobookModal .modal-content {
        padding: 15px;
        margin: 10px;
    }

    #addAdminModal .modal-content .btn,
    #upgradeAccountModal .modal-content .btn,
    #editProfileModal .modal-content .btn,
    #changePasswordModal .modal-content .btn,
    .editAudiobookModal .modal-content .btn {
        height: 45px;
        font-size: 18px;
        padding: 12px;
    }

    #addAdminModal .modal-content input,
    #upgradeAccountModal .modal-content input,
    #editProfileModal .modal-content input,
    #changePasswordModal .modal-content input,
    .editAudiobookModal .modal-content input {
        height: 45px;
        padding: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #addAdminModal .modal-content,
    #upgradeAccountModal .modal-content,
    #editProfileModal .modal-content,
    #changePasswordModal .modal-content,
    .editAudiobookModal .modal-content {
        padding: 12px;
        margin: 5px;
    }

    #addAdminModal .modal-content .btn,
    #upgradeAccountModal .modal-content .btn,
    #editProfileModal .modal-content .btn,
    #changePasswordModal .modal-content .btn,
    .editAudiobookModal .modal-content .btn {
        height: 40px;
        font-size: 16px;
    }

    #addAdminModal .modal-content input,
    #upgradeAccountModal .modal-content input,
    #editProfileModal .modal-content input,
    #changePasswordModal .modal-content input,
    .editAudiobookModal .modal-content input {
        height: 40px;
        font-size: 16px;
    }
}
.table th {
    font-size: 18px;
}
.table td {
    padding-top: 10px;
}
.table .btn {
    background-color: var(--text-color);
    color: #fff;
    border-radius: 999px;
    transition: .3s ease-in-out;
    font-size: 12px;
}
.table .btn a {
    color: #fff;
    text-decoration: none;
}
.table .btn-remove {
    background-color: var(--orange-color);
}
.table .btn:hover {
    background-color: var(--text-hover-color);
}
.book-details-wrap {
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: 100vh;
    position: relative;
}

.book-details {
    display: flex;
    min-height: 80vh;
    align-items: stretch;
}
.book-details .cover {
    width: 40%;
    position: relative;
    transition: .3s ease-in-out;
}

.book-details .cover:hover {
    opacity: 0.8;
}

.book-details .cover img {
    width: 100%;
    border-radius: 12px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 15px 25px rgba(0, 0, 0, 0.15),
        0 5px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.4s ease;
}

.book-details .cover img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 20px 35px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.15);
}

.book-details .cover img:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 75%,
        rgba(0, 0, 0, 0.2) 100%
    );
    border-radius: 12px;
    pointer-events: none;
}

.book-details .cover img:after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    right: 60%;
    bottom: 60%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    border-radius: 8px;
    filter: blur(3px);
    pointer-events: none;
}
.book-details .details {
    margin-left: 10%;
    width: 60%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-details .details h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 768px) {
    .book-details .details h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .book-details .details h1 {
        font-size: 1.75rem;
    }
}
.book-details .listen-btn {
    background-color: var(--orange-color);
    color: #fff;
    /* width: 70px;
    height: 70px;
    position: absolute; */
    /* right: 40%;
    bottom: 45%; */
    border: none;
    border-radius: 18px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: -1px 1px 5px 0px var(--tex-color-2); */
    transition: .3s ease-in-out;
    padding: 5px 8px;
}
.book-details .listen-btn:hover {
    cursor: pointer;
    transform: translateY(10px);
}
.book-details .listen-btn.subscribe {
    background-color: var(--primary-color);
}
.book-details .listen-btn a {
    color: white;
    text-decoration: none;
}
.book-details .details p {
}
.book-details .description {}

.text-warning {
    color: var(--orange-color) !important;
}

/* =====================================================================
    Profile Page
========================================================================*/
.profile-box {
    background-color: white;
    border-radius: 25px;
    padding: 1rem 1.5rem;
    transition: .3s ease-in-out;
}
.profile-box:hover {
    box-shadow: -1px 1px 5px 0px var(--tex-color-2);
}
.profile-box span {
    margin-right: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}
.profile-box .btn {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 18px;
    transition: .3s ease-in-out;
}
.profile-box .btn:hover {
    cursor: pointer;
    transform: translateY(5px);
    opacity: .7;
}

/* Mobile responsive styles for profile page */
@media (max-width: 768px) {
    .profile-box {
        padding: 1rem;
        margin: 15px;
    }

    .profile-box p {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .profile-box span {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .profile-box .btn {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-box {
        padding: 0.8rem;
        margin: 10px;
    }

    .profile-box p {
        font-size: 0.9rem;
    }
}
#upgradeAccountModal span {
    background-color: var(--orange-color);
}
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 300px;
  }

  .swiper-slide img {
    display: block;
    width: 100%;
  }

/* =====================================================================
   Swiper
========================================================================*/
.relative {
    position: relative;
}
.swiper-container {
    padding-top: 100px;
    padding-bottom: 100px;
}

.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    overflow: hidden;
    list-style: none;
    padding-top: 100px;
    padding-bottom: 100px;
    height: 550px;
}
.swiper-slide-active .tf-card-box {
    /* box-shadow: 0px 30px 70px 0px #0A0A0A; */
}
.tf-card-box {
    border-radius: 25px;
    background: var(--text-color);
    padding: 12px 12px 17px 12px;
    margin-bottom: 40px;
    -webkit-transition: all 0.2s ease;
    -moz-transition   : all 0.2s ease;
    -ms-transition    : all 0.2s ease;
    -o-transition     : all 0.2s ease;
    transition        : all 0.2s ease;
}

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

.tf-card-box .card-media {
    position: relative;
    margin-bottom: 12px;
    border-radius: 25px;
    overflow: hidden;
}

.tf-card-box .card-media img {
    width: 100%;
    object-fit: cover;
    -webkit-transition: all 0.2s ease;
    -moz-transition   : all 0.2s ease;
    -ms-transition    : all 0.2s ease;
    -o-transition     : all 0.2s ease;
    transition        : all 0.2s ease;
}

.tf-card-box:hover .card-media a img {
    transform: scale(1.1);
}
.tf-card-box .name a {
    color: white !important;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}
.tf-card-box .name a:hover {
    color: var(--primary-color) !important;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.tf-card-box .author {
    color: var(--text-hover-color);
    font-size: 18px;
}
.tf-card-box .play-btn {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -1px 1px 10px 0px var(--tex-color-2);
    position: absolute;
    bottom: 10px;
    left: 40%;
    background-color: #fff;
    transition: all .3s ease-in-out;
}
.tf-card-box .play-btn:hover {
    background-color: var(--orange-color);
}
.tf-card-box .play-btn:hover i {
    color: white;
}
.tf-card-box .play-btn i {
    font-size: 2rem;
    color: var(--orange-color);
}
.swiper-container-horizontal>.swiper-pagination-bullets {
    bottom: 0 !important;
}
.swiper-pagination.pagination-number .swiper-pagination-bullet {
    color: var(--orange-color);
    opacity: 1;
    font-size: 20px;
    font-weight: 800;
    margin: 0 10px !important;
    position: relative;
}

.swiper-pagination.pagination-number .swiper-pagination-bullet-active {
    --swiper-theme-color: none;
    color: var(--orange-color);
    margin-right: 60px !important;

}

.swiper-pagination.pagination-number .swiper-pagination-bullet-active::after {
    position: absolute;
    content: "";
    background-color: var(--orange-color);
    width: 20px;
    height: 1px;
    top: 8px;
    right: -50px;
}
.prev-3d.swiper-button-disabled,
.next-3d.swiper-button-disabled {
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.swiper-button-prev.over,
.swiper-button-next.over {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.10);
    width: 67px;
    height: 67px;
    padding: 22px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.swiper-button-prev.over:hover,
.swiper-button-next.over:hover {
    background-color: #DDF247;
}

.swiper-button-prev.over::after,
.swiper-button-next.over::after {
    font-size: 24px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.swiper-button-prev.over:hover:after,
.swiper-button-next.over:hover:after {
    color: rgba(22, 22, 22, 1);
}

.swiper-button-prev.over {
    left: -97px;
}

.swiper-button-next.over {
    right: -97px;
}

/* =====================================================================
   Audio player
========================================================================*/
.audio-player-home {
    z-index: 999999;
    height: 85px;
    width: 500px;
    position: fixed !important;
    bottom: 10px;
    right: 0;
}
.close-player-btn {
    position: absolute;
    top: 30px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-player-btn:hover {
    opacity: 1;
}

.close-player-btn svg {
    display: block;
}

.audio-player {
    height: 80px;
    width: 500px;
    background: var(--text-color);
    border-radius: 18px;
    /* box-shadow: 0 0 20px 0 #000a; */
    box-shadow: -1px 1px 5px 0px var(--tex-color-2);
    font-family: arial;
    color: white;
    font-size: 0.75em;
    overflow: hidden;
    display: grid;
    grid-template-rows: 6px auto;
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
  .audio-player .timeline {
    background: var(--tex-color-2);
    width: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 10px 0 #0008;
    margin-top: 10px;
    border-radius: 5px;
    height: 10px;
  }
  .audio-player .timeline .progress {
    background: coral;
    width: 0%;
    height: 100%;
    transition: 0.25s;
  }
  .audio-player .controls {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 20px;
  }
  .audio-player .controls > * {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .audio-player .controls .toggle-play.play {
    cursor: pointer;
    position: relative;
    left: 0;
    height: 0;
    width: 0;
    border: 7px solid #0000;
    border-left: 13px solid white;
  }
  .audio-player .controls .toggle-play.play:hover {
    transform: scale(1.1);
  }
  .audio-player .controls .toggle-play.pause {
    height: 15px;
    width: 20px;
    cursor: pointer;
    position: relative;
  }
  .audio-player .controls .toggle-play.pause:before {
    position: absolute;
    top: 0;
    left: 0px;
    background: white;
    content: "";
    height: 15px;
    width: 3px;
  }
  .audio-player .controls .toggle-play.pause:after {
    position: absolute;
    top: 0;
    right: 8px;
    background: white;
    content: "";
    height: 15px;
    width: 3px;
  }
  .audio-player .controls .toggle-play.pause:hover {
    transform: scale(1.1);
  }
  .audio-player .controls .time {
    display: flex;
  }
  .audio-player .controls .time > * {
    padding: 2px;
  }
  .audio-player .controls .volume-container {
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  .audio-player .controls .volume-container .volume-button {
    height: 26px;
    display: flex;
    align-items: center;
  }
  .audio-player .controls .volume-container .volume-button .volume {
    transform: scale(0.7);
  }
  .audio-player .controls .volume-container .volume-slider {
    position: absolute;
    left: -3px;
    top: 15px;
    z-index: -1;
    width: 0;
    height: 15px;
    background: white;
    /* box-shadow: 0 0 20px #000a; */
    transition: 0.25s;
  }
  .audio-player .controls .volume-container .volume-slider .volume-percentage {
    background: coral;
    height: 100%;
    width: 75%;
  }
  .audio-player .controls .volume-container:hover .volume-slider {
    left: -123px;
    width: 120px;
  }


  /* Now Playing Section Styles */
.empty-state {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Mobile-specific styles for discover page */
@media (max-width: 768px) {
    .home .row {
        flex-direction: column;
    }

    .menu-content {
        width: 100% !important;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .menu-content .container {
        flex-direction: row !important;
        justify-content: space-around;
        padding: 0;
    }

    .menu-box {
        margin: 0 5px;
    }

    .menu-title {
        display: none;
    }

    .menu-icon {
        font-size: 1.5rem;
    }

    .main-content {
        width: 100% !important;
        padding-bottom: 80px; /* Space for bottom menu */
    }

    .page-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info-box {
        margin-top: 15px;
        width: 100%;
    }

    .categories-sec {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
    }

    .category-box {
        display: inline-block;
        margin-right: 10px;
        min-width: 80px;
    }

    .books-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .book {
        margin-bottom: 0;
    }

    /* Now playing section */
    #now-playing-container {
        position: fixed;
        bottom: 80px; /* Above the menu */
        left: 0;
        width: 100%;
        background: white;
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .book-player {
        display: flex;
        align-items: center;
    }

    .book-player .cover {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

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

    .book-player .title,
    .book-player .author {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .book-player .media-buttons {
        margin-left: auto;
    }

    .book-player .media-progress {
        display: none;
    }
}

@media (max-width: 480px) {
    .books-wrap {
        grid-template-columns: 1fr;
    }

    .book {
        width: 100%;
    }

    .book-player .title,
    .book-player .author {
        max-width: 100px;
    }
}

/** Audibook Page **/
.audiobook-page {
    font-family: "Fredoka", sans-serif;
    color: var(--text-color);
    background-color: red;
}

/* Hero Section */
.audiobook-hero {
   height: 30vh;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle, rgba(179, 204, 162, 0.2) 0.75em, transparent 0.75em, transparent 1.5em, rgba(204, 195, 148, 0.1) 1.5em, rgba(204, 195, 148, 0.1) 1.8em, transparent 1.8em) 0 0,
        radial-gradient(circle, rgba(204, 195, 148, 0.2) 0.75em, transparent 0.75em, transparent 1.5em, rgba(179, 204, 162, 0.1) 1.5em, rgba(179, 204, 162, 0.1) 1.8em, transparent 1.8em) 3em 3em,
        radial-gradient(circle, rgba(179, 204, 162, 0.1) 0.375em, transparent 0.375em) 3em 0,
        radial-gradient(circle, rgba(204, 195, 148, 0.1) 0.3em, transparent 0.3em) 0 3em;
    background-size: 6em 6em;
    background-color: var(--secondary-color);
    background-repeat: repeat;
}

.audiobook-hero h1 {
    letter-spacing: 0.5rem;
}

.audiobook-section {
    background-color: var(--primary-shade-1);
    margin-top: -120px;
}

.audiobook-section .book-details {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.audiobook-section .book-details .cover {
    height: 340px;
}

.audiobook-section .book-details .cover img {
    width: 75%;
}

.audiobook-section .book-details .listen-btn,
.audiobook-section .book-details a.listen-btn {
    background-color: var(--secondary-color);
    width: 180px !important;
}

.auth-section {
    background-color: var(--primary-color);
    position: relative;
    z-index: 1; /* Lower than navbar */
}

.auth-section .auth-sec2 {
    display: flex;
    justify-content: center;
    z-index: 9;
}

.auth-section .auth-sec2 .auth-box {
    margin: 0;
    background-color: var(--primary-color);
    width: 45%;
    z-index: 99;
}

.auth-section .auth-sec2 .auth-box .link {
    color: white;
}

.auth-section .auth-sec2 .auth-box:hover {
    border: 1px solid var(--primary-color);
}

.auth-section .auth-bg {
    position: absolute;
    top: 20%;
    z-index: 0;
    height: 60%;
}

.auth-section .auth-bg:first-child {
    top: 50%;
    right: 0;
    background-color: red !important;
}

.auth-section .auth-bg img {
    height: 100%;
}

.auth-section .auth-sec2 .auth-box .title {
    color: var(--primary-shade-2);
    font-weight: 700;
    font-size: 3rem;
    text-align: center;
}

.auth-section .auth-sec2 .auth-box input {
    background-color: var(--primary-shade-2);
}

.auth-section .auth-sec2 .auth-box input:focus {
    border-color: var(--secondary-color);
}

.genre-wrap {
    display: flex;
    flex-wrap: wrap;
    padding: 2.5rem 0;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 20px;
}

.genre-wrap .book-item {
    flex: 0 0 190px;
    height: 290px;
    margin: 0;
}
@media (max-width: 768px) {
    .auth-bg {
        display: none;
    }

    .auth .row {
        margin: 0;
        height: 100vh;
    }

    .auth .col-lg-3 {
        display: none; /* Hide left image column on mobile */
    }

    .auth .col-lg-9 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .auth-sec2 {
        height: 100vh;
        padding: 20px;
        justify-content: center;
        align-items: center;
    }

    .auth-box {
        width: 100% !important;
        max-width: 400px;
        border-radius: 20px;
        padding: 30px 20px;
        margin: 0 auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-box .title {
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .auth-box input {
        font-size: 16px; /* Prevents zoom on iOS */
        height: 50px;
        margin-bottom: 1rem;
        border-radius: 12px;
        padding: 0 15px;
    }

    .auth-box .google-btn {
        width: 100%;
        height: 50px;
        font-size: 16px;
        border-radius: 12px;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .auth-box .btn {
        height: 50px;
        font-size: 16px;
        border-radius: 12px;
        width: 100%;
    }

    .auth-box .form-check {
        margin: 1rem 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .auth-box .form-check-input {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    .auth-box .form-check-label {
        font-size: 14px;
        line-height: 1.4;
    }

    .auth-box .fw-bold {
        font-size: 16px;
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }

    .auth-box .forgot {
        font-size: 14px;
    }

    .auth-box hr.divider {
        margin: 20px 0;
    }

    .auth-header {
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .back-btn {
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 16px;
        cursor: pointer;
        padding: 8px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: color 0.3s ease;
    }

    .back-btn:hover {
        color: var(--secondary-color);
    }

    .back-btn i {
        font-size: 18px;
    }

    .home-link {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        transition: color 0.3s ease;
    }

    .home-link:hover {
        color: var(--secondary-color);
        text-decoration: none;
    }

    .home-link i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .auth-sec2 {
        padding: 15px;
    }

    .auth-box {
        padding: 25px 15px;
        max-width: 100%;
        margin: 10px;
    }

    .auth-box .title {
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem;
    }

    .auth-box input {
        height: 48px;
        font-size: 16px;
    }

    .auth-box .google-btn {
        height: 48px;
        font-size: 15px;
    }

    .auth-box .btn {
        height: 48px;
        font-size: 15px;
    }

    .auth-box .fw-bold {
        font-size: 15px;
    }

    .auth-box .form-check-label {
        font-size: 13px;
    }

    .back-btn {
        font-size: 15px;
        padding: 6px 0;
    }

    .back-btn i {
        font-size: 16px;
    }

    .home-link {
        font-size: 15px;
    }

    .home-link i {
        font-size: 16px;
    }
}

/* =============================================================================
    Page Navbar
   ============================================================================*/

.page-navbar {
    background-color: var(--color-secondary-500);
    margin-left: -3rem;
    height: 70px;
    display: flex;
}

.page-navbar-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 60%;
}

.page-navbar-links a {
    height: 70px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.page-navbar-links a:hover {
    color: var(--color-secondary-200);
}

.page-nav-title {
    width: 20%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 3rem;
    color: white;
    font-weight: 700;
    font-size: 30px;
}

.page-navbar .user-box {
    display: flex;
    text-align: right;
    padding: 5px;
    width: 20%;
    justify-content: right;
}


.page-navbar .user-box .icon {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-navbar .user-box .icon i {
    font-size: 50px;
    color: white;
}


.page-navbar .user-box .info {
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
    margin-top: 15px;
}

.page-navbar .user-box .info p {
    line-height: 0.5em;
    color: white;
}

.page-navbar .user-box .info p:first-child {
    font-weight: 700;
}

.page-navbar .user-box .info p:last-child {
    font-size: 12px;
}

/* =============================================================================
   Premium User Navbar Component (Admin-Style)
   ============================================================================*/

.page-navbar-user {
    position: relative;
    margin-right: 2rem;
}

.user-profile-card {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-info {
    display: flex;
    flex-direction: column;
    margin-right: 0.75rem;
    text-align: right;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.user-subscription {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.user-avatar {
    margin-right: 0.5rem;
}

.user-avatar i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-chevron {
    transition: transform 0.3s ease;
}

.dropdown-chevron.rotated {
    transform: rotate(180deg);
}

.dropdown-chevron i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
    color: white;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
}

.dropdown-avatar {
    margin-right: 0.75rem;
}

.dropdown-avatar i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-details {
    flex: 1;
}

.dropdown-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: white;
}

.dropdown-subscription {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dropdown-body {
    padding: 0.5rem 0;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.dropdown-menu-item:hover {
    background: rgba(111, 55, 0, 0.05);
    color: var(--primary-color);
}

.dropdown-menu-item i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
    color: var(--tex-color-2);
    transition: color 0.2s ease;
}

.dropdown-menu-item:hover i {
    color: var(--primary-color);
}

.dropdown-menu-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.logout-item {
    color: var(--color-error-600) !important;
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.05) !important;
    color: var(--color-error-700) !important;
}

.logout-item:hover i {
    color: var(--color-error-600) !important;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.logout-form {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-navbar-user {
        margin-right: 1rem;
    }

    .user-profile-card {
        padding: 0.4rem 0.8rem;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .user-subscription {
        font-size: 0.7rem;
    }

    .user-avatar i {
        font-size: 1.5rem;
    }

    .user-dropdown-menu {
        min-width: 250px;
        right: -1rem;
    }
}

.user-info-box .name {
    color: var(--primary-color);
}

.user-info-box i {
    font-size: 40px;
    margin-left: 10px;
    color: var(--primary-color);
}

.page-navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1100;
}

.page-navbar-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.page-navbar-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.page-navbar-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.page-navbar-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive layout */
@media (max-width: 991.98px) {
    .page-navbar {
        flex-wrap: wrap;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .page-nav-title {
        width: auto;
        height: 50px;
        padding-left: 1rem;
        font-size: 24px;
    }

    .page-navbar-toggle {
        display: flex;
        margin-left: 30%;
    }

    .page-navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-secondary-500);
        padding: 1rem;
        z-index: 9999;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    }

    .page-navbar-links a {
        padding: 10px 0;
    }

    .page-navbar-links.show {
        display: flex;
    }

    .user-box {
        display: none !important;
        /* width: 100%;
        justify-content: center;
        padding: 1rem;
        text-align: center; */
    }

    .user-box .info {
        align-items: center;
        margin-top: 0;
    }
}





/* Base Styles */
.about-page {
    font-family: "Fredoka", sans-serif;
    color: var(--text-color);
}

.about-page .header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    padding: 6%;
}

.about-page .header h1 {
    letter-spacing: 0.5rem;
}

.about-content {
    padding: 6%;
    background-color: var(--background-color);
}

/* About Cards */
.about-card {
    background-color: white;
    border-radius: 25px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--primary-color);
}

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

/* Services Section */
.services-section {
    background-color: var(--primary-color);
    border-radius: 25px;
    padding: 2rem;
    border: 1px solid var(--primary-color);
}
/* Ensure Services section background is gold across the Services page */
.services-page .services-section {
    background-color: var(--primary-color) !important;
}

.service-card {
    background-color: var(--background-color);
    border-radius: 15px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--primary-color);
}

.service-card:hover {
    background-color: white;
    box-shadow: -1px 1px 10px 0px rgba(0, 144, 116, 0.2);
}

.service-card h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.service-card i {
    color: var(--orange-color);
    margin-right: 0.5rem;
}

.service-card ul {
    list-style-type: none;
    padding-left: 0;
}

.service-card li {
    margin-bottom: 0.5rem;
}

.service-card li i {
    font-size: 0.8rem;
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--primary-color);
    border-radius: 25px;
    padding: 2rem;
    color: white;
    border: 1px solid var(--primary-color);
}

.why-us h2 {
    font-weight: 600;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--orange-color);
}

/* CTA Section */
.about-cta {
    background-color: var(--primary-color);
    padding: 6%;
    color: white;
}

.about-cta .btn {
    border: 2px solid white;
    border-radius: 5px;
    color: white;
    margin-right: 1rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.about-cta .btn:hover {
    background-color: white;
    color: var(--primary-color);
}

.about-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.about-cta .btn-primary:hover {
    background-color: var(--orange-color);
    color: white;
    border-color: var(--orange-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-page .header {
        min-height: 200px;
    }

    .about-page .header h1 {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-page .header h1 {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .about-content, .about-page .header, .about-cta {
        padding: 10% 5%;
    }

    .about-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}


/* Search Container */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-form {
    margin-bottom: 1rem;
}

.search-input-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem;
    padding-right: 3rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(223, 185, 109, 0.2);
}

.search-button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--primary-color);
}

.search-icon {
    height: 1.5rem;
    width: 1.5rem;
}

/* =============================================================================
    Search Page
   ============================================================================*/

/* Compact Search Styles */
.compact-search-container {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.compact-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compact-search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 80%;
}

.compact-search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(223, 185, 109, 0.2);
}

.compact-search-input {
    flex: 1;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.compact-search-button {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compact-search-button:hover {
    background: var(--color-primary-600);
    transform: scale(1.05);
}

.compact-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--secondary-color);
}

/* Filter Icons Row */
.filter-icons-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0 0.5rem;
}

.filter-icon-group {
    position: relative;
}

.filter-icon-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.filter-icon-button:hover {
    background: rgba(223, 185, 109, 0.1);
    color: var(--primary-color);
}

.filter-icon {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 1.5;
}

.filter-icon-text {
    white-space: nowrap;
}

.clear-filters-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-error-500);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.clear-filters-icon:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Filter Dropdown */
.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
    display: none;
}

.filter-dropdown[style*='display: block'] {
    display: block;
}

.filter-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.filter-dropdown-item:hover {
    background: rgba(223, 185, 109, 0.1);
    color: var(--primary-color);
}

.filter-dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

/* Active Filter Indicators */
.filter-icon-group[data-active="true"] .filter-icon-button {
    color: var(--primary-color);
    font-weight: 500;
}

.filter-icon-group[data-active="true"] .filter-icon {
    stroke: var(--primary-color);
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.results-section .empty-state {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.results-section .empty-icon {
    height: 4rem;
    width: 4rem;
    margin: 0 auto 1rem;
    color: #9ca3af;
}

.results-section .empty-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.results-section .empty-message {
    color: #6b7280;
}

.results-section .books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .results-section .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .results-section .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .results-section .books-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .results-section .books-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Book Item Styles */
.results-section .book-item {
    transition: all 0.3s ease;
}

.results-section .book-cover {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.results-section .book-cover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.results-section .book-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.results-section .book-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.results-section .book-info {
    transform: translateY(1.25rem);
    transition: transform 0.3s ease;
}

.results-section .book-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.results-section .book-author {
    color: #d1d5db;
    font-size: 0.875rem;
}

.results-section .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(223, 185, 109, 0.9);
    border-radius: 50%;
    padding: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.results-section .play-button:hover {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hover Effects */
.results-section .book-item:hover .book-image {
    transform: scale(1.05);
}

.results-section .book-item:hover .book-overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.results-section .book-item:hover .book-info {
    transform: translateY(0);
}

.results-section .book-item:hover .play-button {
    opacity: 1;
}

/* =============================================================================
    Enhanced Button System
   ============================================================================*/

/* Base Button Styles */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-family: inherit;
    line-height: 1.5;
}

.btn-custom:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants */
.btn-primary-custom {
    background-color: var(--btn-primary);
    color: white;
    border: 1px solid var(--btn-primary);
}

.btn-primary-custom:hover {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 55, 0, 0.3);
}

.btn-primary-custom:active {
    background-color: var(--btn-primary-active);
    border-color: var(--btn-primary-active);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(111, 55, 0, 0.4);
}

.btn-secondary-custom {
    background-color: transparent;
    color: var(--btn-primary);
    border: 2px solid var(--btn-primary);
}

.btn-secondary-custom:hover {
    background-color: var(--btn-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 55, 0, 0.2);
}

.btn-secondary-custom:active {
    background-color: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
}

.btn-danger-custom {
    background-color: var(--color-error-500);
    color: white;
    border: 1px solid var(--color-error-500);
}

.btn-danger-custom:hover {
    background-color: var(--color-error-600);
    border-color: var(--color-error-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-success-custom {
    background-color: var(--color-success-500);
    color: white;
    border: 1px solid var(--color-success-500);
}

.btn-success-custom:hover {
    background-color: var(--color-success-600);
    border-color: var(--color-success-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Button Sizes */
.btn-sm-custom {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-md-custom {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
}

.btn-lg-custom {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 10px;
}

/* Special Button Styles for existing components */
.btn-step-continue,
.btn-step-back,
.btn-add-track,
.btn-add-track-submit {
    background: var(--btn-primary) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-step-continue:hover,
.btn-add-track:hover,
.btn-add-track-submit:hover {
    background: var(--btn-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 55, 0, 0.3);
    color: white !important;
}

.btn-step-back {
    background: #e5e7eb !important;
    color: #374151 !important;
}

.btn-step-back:hover {
    background: #d1d5db !important;
    color: #1f2937 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Update existing button overrides */
.upload-wrap .btn,
.create-admin-btn,
.admin-profile .btn,
.table .btn,
.auth-box .btn {
    background-color: var(--btn-primary) !important;
    border-color: var(--btn-primary) !important;
}

.upload-wrap .btn:hover,
.create-admin-btn:hover,
.admin-profile .btn:hover,
.table .btn:hover,
.auth-box .btn:hover {
    background-color: var(--btn-primary-hover) !important;
    border-color: var(--btn-primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(111, 55, 0, 0.3);
}

/* =============================================================================
    Premium Action Button Styles for Audiobook Views
   ============================================================================*/

.premium-action-btn {
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    text-transform: none;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-width: 1px !important;
    position: relative;
    overflow: hidden;
}

.premium-action-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.premium-action-btn:hover:before {
    left: 100%;
}

.premium-action-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.premium-action-btn:active {
    transform: translateY(-1px) !important;
    transition: all 0.1s ease !important;
}

.premium-action-btn i {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Primary Action Button (Play/Listen) */
.premium-action-btn.btn-primary-custom {
    background: linear-gradient(135deg, var(--btn-primary) 0%, #8b4a00 100%) !important;
    border-color: var(--btn-primary) !important;
    color: white !important;
}

.premium-action-btn.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover) 0%, #a55500 100%) !important;
    border-color: var(--btn-primary-hover) !important;
    box-shadow: 0 6px 20px rgba(111, 55, 0, 0.3) !important;
}

/* Secondary Action Button (Preview) */
.premium-action-btn.btn-secondary-custom {
    background: linear-gradient(135deg, transparent 0%, rgba(111, 55, 0, 0.05) 100%) !important;
    border-color: var(--btn-primary) !important;
    color: var(--btn-primary) !important;
    backdrop-filter: blur(10px);
}

.premium-action-btn.btn-secondary-custom:hover {
    background: linear-gradient(135deg, var(--btn-primary) 0%, #8b4a00 100%) !important;
    color: white !important;
    border-color: var(--btn-primary-hover) !important;
}

/* Success Action Button (Subscribe) - Now matches primary button color */
.premium-action-btn.btn-success-custom,
.premium-subscribe-btn {
    background: linear-gradient(135deg, var(--btn-primary) 0%, #8b4a00 100%) !important;
    border-color: var(--btn-primary) !important;
    color: white !important;
}

.premium-action-btn.btn-success-custom:hover,
.premium-subscribe-btn:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover) 0%, #a55500 100%) !important;
    border-color: var(--btn-primary-hover) !important;
    box-shadow: 0 6px 20px rgba(111, 55, 0, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .premium-action-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .audiobook-actions {
        max-width: 200px !important;
    }
}

@media (max-width: 480px) {
    .premium-action-btn {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.85rem !important;
        border-radius: 10px !important;
    }

    .audiobook-actions {
        max-width: 180px !important;
        gap: 0.6rem !important;
    }
}


/* Services view body background guarantee (scoped) */
body.services-body { background-color: #ffffff !important; }
.services-page { background-color: #ffffff; min-height: 100%; }


/* === Mobile layout fix: show cover first, then text on audiobook pages === */
@media (max-width: 768px) {
  /* Stack the main sections vertically and center the cover */
  .book-details {
    display: flex; /* ensure flex even if not already */
    flex-direction: column;
    align-items: center;
  }
  .book-details .cover {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.25rem;
    height: auto;
  }
  .book-details .cover img {
    width: 100% !important;
    height: auto !important;
    transform: none; /* remove 3D tilt on small screens to avoid overflow */
  }
  .book-details .details {
    width: 100%;
    margin-left: 0;
  }

  /* Guest/public page specific tweaks */
  .audiobook-section .book-details .cover {
    height: auto; /* override fixed height */
  }
  .audiobook-section .book-details .cover img {
    width: 100% !important; /* override the 75% rule for mobile */
  }
}


/* === Alignment for audiobook metadata fields (Author, Genre, Narrator, Language) ===
   Align with the regular text/description start on web (desktop) and mobile. */
.book-details .details p.meta-line {
  text-align: left;
}

/* Mobile overrides: meta fields left-aligned; action buttons centered as a group */
@media (max-width: 768px) {
  .book-details .details p.meta-line {
    text-align: left !important;
  }
  .audiobook-actions {
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
  }
}


/* === Mobile Navbar Logo Responsiveness Guarantee (applies across all views) === */
@media (max-width: 768px) {
  /* For the global navbar */
  .navbar .logo-container {
    width: auto;
    display: flex;
    align-items: center;
  }
  .navbar .logo {
    position: static;
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: 60vw;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transform: none;
    display: block;
    object-fit: contain;
  }
  /* For legacy nav used on some views (e.g., projects page) */
  .nav .logo img {
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: 65vw;
    object-fit: contain;
  }
}
@media (max-width: 480px) {
  .navbar .logo { max-height: 42px; max-width: 65vw; }
  .nav .logo img { max-height: 42px; max-width: 70vw; }
}
@media (max-width: 360px) {
  .navbar .logo { max-height: 38px; }
  .nav .logo img { max-height: 38px; }
}
