        /* Reuse existing styles from index1.html */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Author Grid Layout */
        .authors-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 20px;
        }

        /* Author Card Styles */
        .author-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.3s ease;
        }

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

        .author-image {
            width: 100%;
            height: 350px;
            object-fit: cover;
            object-position: top;
        }

        .author-info {
            padding: 20px;
        }

        .author-name {
            font-size: 1.5em;
            color: #2c3e50;
            margin: 0 0 10px 0;
        }

        .author-bio {
            color: #666;
            margin-bottom: 15px;
            line-height: 1.6;
        }

        /* Author's Books Section */
        .author-books {
            padding: 15px;
            background: #f8f9fa;
        }

        .book-list {
            /* list-style: none;
            padding: 0;
            margin: 0; */
            display: flex; /* Arrange books in a row */
            gap: 20px; /* Space between books */
            list-style: none; /* Remove default bullet points */
            padding: 0;
            justify-content: center; /* Center the books horizontally */

        }

        .book-item {
            /* padding: 10px;
            border-bottom: 1px solid #eee; */
            display: flex;
            flex-direction: column; /* Stack image and text */
            align-items: center; /* Center align content */
            text-align: center;
            width: 250px; /* Set a fixed width for each book */
        }

        .book-item img {
            width: 200px; /* Reduce image size */
            height: 240px; /* Maintain aspect ratio */
            object-fit: fill; /* Ensure the image fills its box */
            border-radius: 5px; /* Optional: Rounded corners */
            }

        .book-item:last-child {
            border-bottom: none;
        }

        .book-title {
            color: #2c3e50;
            font-weight: bold;
        }

        .book-genre {
            color: #666;
            font-size: 0.9em;
        }

        .view-profile {
            display: inline-block;
            padding: 8px 20px;
            background-color: #2c3e50;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 15px;
            transition: background-color 0.3s ease;
        }

        .view-profile:hover {
            background-color: #34495e;
        }

        /* Page Title Styles */
        .page-title {
            text-align: center;
            color: #2c3e50;
            margin: 40px 0;
            font-size: 2.5em;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .authors-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 20px;
                padding: 15px;
            }


            .author-image {
                height: 200px;
            }

            .page-title {
                font-size: 2em;
                margin: 30px 0;
            }
        }

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

            .page-title {
                font-size: 1.8em;
                margin: 20px 0;
            }

                .book-list {
            display: flex;
            flex-direction: column; /* Stack items vertically */
            align-items: center; /* Center-align content */
            gap: 15px; /* Space between items */
            padding: 0;
        }   
            .author-image {
                width: 100%;
                height: 250px;
                object-fit: cover;
                object-position: right;
            }

        .book-item {
            display: flex;
            flex-direction: column; /* Keep stacking structure */
            align-items: center;
            text-align: center;
            width: 100%; /* Full width for better spacing */
        }

        .book-item img {
            width: 150px; /* Reduce image size for better fit */
            height: 200px;
            object-fit: cover;
            border-radius: 5px;
        }
    }