/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding-top: 70px;
}

/* Hide stray text at the top */
body::before {
    content: none;
    display: none;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    min-height: 70px;
}

.logo img {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-menu a:hover {
    color: #ff5733;
    transform: translateY(-2px);
}

.nav-menu .my-books-link {
    padding: 10px 24px;
    background: linear-gradient(90deg, #28a745, #34c759);
    color: white !important;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-menu .my-books-link:hover {
    background: linear-gradient(90deg, #218838, #2ba84a);
    transform: scale(1.05);
}

.nav-menu .logout-link {
    padding: 10px 24px;
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
    color: white !important;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-menu .logout-link:hover {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: #c0392b;
}

.nav-toggle .toggle-text {
    font-weight: 500;
}

.nav-toggle i {
    font-size: 1.2rem;
}

.main-head-text {
    margin-top: 20px;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a1a3a, #001333); /* Dark blue gradient */
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.main-head-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-head-text h1 span {
    display: inline-block;
    background: linear-gradient(90deg, #fff700, #ffc107);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 900;
}

/* Main Hero Section */
.main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 5%;
    background: linear-gradient(135deg, #0a1a3a, #001333);
    border-radius: 20px;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 0px;
}

.main_img {
    flex: 1;
    max-width: 100%;
    margin: 2rem auto;
    text-align: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.main_tag {
    flex: 1;
    padding-left: 50px;
    text-align: justify;
    /*padding-right: 3rem;*/
}

.main_tag p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #f0f0f0;
    margin-bottom: 0;
    line-height: 1.8;
    opacity: 0.9;
}

.m_price {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.m_price sub del {
    color: #ffffff;
    font-size: 0.95rem;
    opacity: 0.7;
}

.countdown {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.main_btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #ff5733, #ff8c68);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.main_btn:hover {
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
    transform: scale(1.05);
}

.main_btn.secondary {
    background: linear-gradient(90deg, #3498db, #4fc3f7);
}

.main_btn.secondary:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
}

.main_img {
    flex: 1;
    text-align: center;
}

.main_img video {
    max-width: 100%;
    max-height: 350px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.main_img video:hover {
    transform: scale(1.03);
}
/*coaching but*/
.coach_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
  padding: 12px 24px;
  background: linear-gradient(45deg, #FF6B6B, #FFD93D);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.coach_btn i {
  font-size: 1.2rem;
}

.coach_btn:hover,
.coach_btn:focus {
  background: linear-gradient(45deg, #FF4B4B, #FFC823);
  box-shadow: 0 6px 15px rgba(255, 75, 75, 0.6);
  outline: none;
}

.coach_btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(255, 75, 75, 0.8);
}


/* About Section */
.about {
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    max-width: 1280px;
    margin: 2rem auto;
    gap: 2rem;
    background: #f7f9fc;
    border-radius: 20px;
}

.about_image {
    flex: 1;
}

.about_image img {
    width: 80%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about_image img:hover {
    transform: scale(1.03);
}

.about_tag {
    flex: 1;
}

.about_tag h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.2rem;
    color: #1a1a1a;
    font-weight: 700;
}

.about_tag p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

.about_btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #3498db, #4fc3f7);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    transition: background 0.3s ease, transform 0.2s ease;
}

.about_btn:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 720px;
    border-radius: 15px;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #666;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}

.close:hover {
    color: #000;
}

.modal-content p, .modal-content ul {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.7;
    color: #4a4a4a;
}

/* Featured Books Section (Redesigned for index.php) */
.featured_books {
    padding: 1rem 5%;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.4s;
}

.featured_books h1 {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    margin-bottom: 2rem;
    color: #333;
}

.featured_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.featured_book_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.book_image {
    width: 100%;
    max-width: 250px; /* Keep image small and user-friendly */
    height: auto; /* Allow height to adjust proportionally */
    margin: 0px auto 1rem; /* Negative margin to position image above card */
    z-index: 1; /* Ensure image is above card */
}

.book_image img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Display full image without cropping */
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.book_image img:hover {
    transform: scale(1.1);
}

.book_content {
    padding: 1.2rem;
    text-align: center;
    width: 100%;
}

.book_content h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    margin-top: -2rem;
    color: #333;
}

.book_content .writer {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.book_content .categories {
    color: #3498db;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    margin-bottom: 1rem;
}

.book_content .book_price {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.book_content .book_price sub del {
    color: #999;
    font-size: 0.9rem;
}

.book_content .book_actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.book_content .f_btn {
    display: inline-block;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    background: #2ecc71;
}

.book_content .f_btn:hover {
    background: #27ae60;
    transform: scale(1.05);
}

.book_content .f_btn.payment {
    background: #e67e22; /* Orange for payment */
}

.book_content .f_btn.payment:hover {
    background: #d35400;
    transform: scale(1.05);
}

.book_content .f_btn.secondary {
    background: #3498db;
}

.book_content .f_btn.secondary:hover {
    background: #2980b9;
}

.featured-countdown {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews_section {
    padding: 4rem 5%;
    background: #f7f9fc;
    text-align: center;
}

.reviews_section h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 700;
}

.reviews_buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.review_btn, .testimonial_btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.review_btn {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.review_btn:hover {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transform: scale(1.05);
}

.testimonial_btn {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.testimonial_btn:hover {
    background: linear-gradient(90deg, #8e44ad, #9b59b6);
    transform: scale(1.05);
}

.reviews_buttons i {
    margin-right: 10px;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a1a3a, #001333);
    color: white;
    padding: 3rem 5% 1rem;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.footer_main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.tag img {
    height: 40px;
    margin-bottom: 1rem;
}

.tag h1 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.tag p {
    line-height: 1.6;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.tag a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.tag a:hover {
    color: #3498db;
}

.tag a i {
    margin-right: 0.5rem;
    width: 20px;
}

.social_link {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social_link a i {
    width: 40px;
    height: 40px;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
}

.social_link a i:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.end {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.end span {
    color: #3498db;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1050px) {
    nav {
        padding: 0.8rem 3%;
        min-height: 50px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        opacity: 0;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    .nav-menu a {
        font-size: clamp(1rem, 2.2vw, 1.1rem);
    }
    .main {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5%;
    }

    .main_tag {
        padding-right: 50px;
        margin-bottom: 2rem;
    }

    .main_img video {
        max-width: 100%;
        max-height: 300px;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .reviews_buttons {
        flex-direction: column;
        align-items: center;
    }
    .featured_book_card {
        max-width: 280px; /* Slightly smaller for tablets */
    }

    .book_image {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    nav {
        padding: 0.8rem 3%;
        min-height: 50px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        opacity: 0;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }

    .nav-menu a {
        font-size: clamp(1rem, 2.2vw, 1.1rem);
    }
    .main-head-text {
        padding: 30px 15px;
    }

    .main-head-text h1 {
        font-size: 2.2rem;
    }

    .main {
        padding: 3rem 3%;
        margin-top: 10px;
    }

    .main_img video {
        max-width: 100%;
        max-height: 250px;
    }

    .about {
        padding: 3rem 3%;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }

    .main_btn {
        padding: 10px 20px;
        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
        flex: 1;
        text-align: center;
    }

    .featured_book_card {
        max-width: 260px;
    }

    .book_image {
        max-width: 200px;
        margin: -20px auto 1rem;
    }

    .reviews_section {
        padding: 3rem 3%;
    }

    .reviews_buttons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 50px;
    }

    nav {
        padding: 0.8rem 3%;
        min-height: 50px;
    }

    .logo img {
        height: 45px;
    }

    .nav-menu {
        top: 50px;
        height: calc(100vh - 50px);
    }

    .main-head-text {
        padding: 20px 10px;
    }

    .main-head-text h1 {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }

    .main {
        padding: 2rem 3%;
        min-height: 300px;
    }

    .main_tag h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }

    .main_img video {
        max-width: 100%;
        max-height: 200px;
    }

    .about {
        padding: 2rem 3%;
    }

    .about_image img {
        max-width: 90%;
    }

    .featured_book_card {
        max-width: 100%; /* Full width on small screens */
        max-width: 220px;
    }

    .book_image {
        max-width: 180px;
        margin: -15px auto 0.8rem;
    }

    .book_content {
        padding: 1rem;
    }

    .book_content h2 {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }

    .book_content .writer,
    .book_content .categories,
    .book_content .book_price,
    .book_content .f_btn,
    .featured-countdown {
        font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    }

    .reviews_section {
        padding: 2rem 3%;
    }

    .reviews_buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .review_btn, .testimonial_btn {
        width: 100%;
        justify-content: center;
    }

    .footer_main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        padding: 20px;
        margin: 10% auto;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .main_btn {
        padding: 8px 15px;
        font-size: clamp(0.8rem, 1.6vw, 0.9rem);
        flex: 1;
        text-align: center;
    }
}

/* Remaining styles from original style.css for other pages */
.social_icon {
    display: flex;
    gap: 1rem;
}

.social_icon i {
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.social_icon i:hover {
    color: #e74c3c;
}

.home_img {
    text-align: center;
    margin-bottom: 2rem;
}

.home_img img {
    max-width: 200px;
    height: auto;
    width: 100%;
}

.home_img h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #333;
    margin-top: 1rem;
}
/* featured_book_card */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.featured_book_card, .arrivals_card, .review_card {
    /* flex: 0 0 100%; */
    max-width: 400px;
    background: white;
    border-radius: 10px;
    /* overflow: hidden; */
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-btn {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 1rem 0.5rem;
}

.carousel-btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.prev-btn, .next-btn {
    position: static;
    transform: none;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

form {
    max-width: 400px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #28a745;
}

form input {
    width: 100%;
    padding: 10px;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

form button {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: background 0.3s ease;
}

form button:hover {
    background: #218838;
}

form p {
    text-align: center;
    margin-top: 0.8rem;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

form p a {
    color: #3498db;
}

form p a:hover {
    text-decoration: underline;
}

.my-books-container {
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 1.5rem 5%;
}

.my-books-header {
    text-align: center;
    margin-bottom: 2rem;
}

.my-books-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    color: #333;
}

.my-books-header p-p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #666;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.book-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-info {
    padding: 1.2rem;
}

.purchase-date {
    color: #666;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    margin-bottom: 0.8rem;
}

.read-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.read-btn:hover {
    background: #27ae60;
}

.no-books {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-books h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 0.8rem;
}

.book-container {
    max-width: 960px;
    margin: 80px auto 30px;
    padding: 1.5rem 5%;
}

.book-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

iframe {
    width: 100%;
    height: 70vh;
    border: none;
    border-radius: 8px;
    display: block;
}

.popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #e1f8e6;
    padding: 1rem;
    border: 2px solid #0f9d58;
    color: #0f9d58;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border-radius: 10px;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.security-warning {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff4444;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    z-index: 10000;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.blur-content {
    filter: blur(10px);
    pointer-events: none;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        font-size: 15px;
    }

    .logo img {
        height: 40px;
    }

    .main {
        padding: 2rem 3%;
        min-height: 250px;
    }

    .main_img video {
        max-width: 100%;
        max-height: 180px;
    }

    .about {
        padding: 2rem 3%;
    }

    .featured_container {
        grid-template-columns: 1fr;
    }

    .book_image img {
        height: 200px;
    }

    .reviews_section {
        padding: 1.5rem 3%;
    }

    .footer_main {
        grid-template-columns: 1fr;
    }
}