body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ff4848 !important; /* Light grey background for the page */
}
@import url('https://fonts.googleapis.com/css2?family=Ga+Maamli&family=Mooli&family=Playwrite+HR:wght@100..400&family=Prata&display=swap');


.mooli-regular {
    font-family: "Mooli", sans-serif;
    font-weight: 400;
    font-style: normal;
  }


.header {
    background-color: #ff4848; /* Very light grey for header */
    color: #333; /* Dark grey text for better readability */
    padding: 10px 20px;
    text-align: center;
    
}
.logo-and-tagline {
    text-align: center;
}

.logo {
    font-size: 40px;
    font-weight: bold;
    color: #393939; /* Blue color for the logo */
    font-family: "Playwrite HR", cursive; /* Enchanting cursive font for a fantasy-themed logo */
}

.tagline {
    font-size: 25px;
    color: #434343; /* Darker grey for text */
    margin: 5px; /* Reduced space between logo and tagline */
    font-family: 'Dancing Script', cursive; /* Enchanting cursive font for a fantasy-themed logo */
}


.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center the navigation items */
    gap: 10px;
}

.navbar ul li {
    padding: 10px 15px;
}

.navbar ul li a {
    color: #393939; /* Blue color for links */
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s; /* Smooth transition for hover effect */
}

.navbar ul li a:hover {
    color: #ffffff; /* Orange color on hover */
}
.header-hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, #f35151, #393939, #f35151); /* Gradient effect from red to dark grey and back */
    margin: 20px 0; /* Increased space above and below the line */
}
.article-hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, #ffffff, #393939, #ffffff); /* Gradient effect from red to dark grey and back */
}


.home-image {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    height: 70vh;
}
.home-image img {
    max-width: 100%; /* Adjust this value as needed to control image size */
    border-radius: 5px;
    box-shadow: 0 4px 8px rgb(0, 0, 0); 
    margin: 20px;
}

.home-section {
    margin: 0 20px;
    padding-top: 20px;
    height: 77vh;
    background-color: #4d4d4d;
}
.home-content {
    margin: 0 20px;
    padding-top: 0;
    height: 60vh;
    
}
.active {
    color: #ffffff !important;
    font-weight: bold;
}
.ga-maamli-regular {
    font-family: "Ga Maamli", sans-serif;
    font-style: normal;
  }

  .prata-regular {
    font-family: "Prata", serif;
    font-weight: 400;
    font-style: normal;
  }

.about-section {
    margin: 0 20px;
    padding-top: 20px;
    background-color: #4d4d4d;
    position: relative;
}
.about-content {
    margin: 0 20px;
    padding-top: 0;
    
}
.about-me {
    display: flex;
    flex-direction: column; /* Align children vertically */
    align-items: center; /* Center-align the children horizontally */
    background-color: #ffffff;
    padding-top: 20px;
}

.about-me-content {
    text-align: center; /* Center-align the text */
    width: 90%; /* Adjust width as needed */
    margin-top: 20px; /* Space between title and content */
} 
.about-me-content p {
    font-size: 18px;
    color: #393939; /* Dark grey text for better readability */
    line-height: 1.5;
}
.about-me-title {
    font-size: 28px;
    font-weight: bold;
    color: #393939; /* Dark grey text for better readability */
    margin: 10px; /* Reduced space between logo and tagline */
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.792);
}

.styled-table thead tr {
    background-color: #ff4848;
    color: #ffffff;
    text-align: center;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #5f7084;
}

.styled-table tbody tr:hover {
    background-color: #5e6765;
    color: #ffffff;
}
.styled-table tbody tr>td:first-child {
    font-weight: bold;
    text-align: left;
}

.back-button {
    position: absolute;
    top: 30px; /* Adjust top as needed */
    left: 3%; /* Adjust left as needed */
    z-index: 10; /* Ensures the button is clickable over other elements */
    text-decoration: none; /* Optional: removes underline from the link */
    color: inherit; /* Optional: inherits text color from parent element */
    font-size: 30px;
}


.article{
    font-family: 'mooli-regular'; /* Ensures a nice readable serif font */
    line-height: 1.8; /* Improves readability by increasing line height */
    color: #333; /* Softer color for easier reading */
    padding: 25px; /* Adds padding around the text */
    border-radius: 8px; /* Adds rounded corners for a softer look */
    margin: 25px 0; /* Adds vertical spacing around the article */
    text-align: left;
    background-color: #ffffff;
}

.article p {
    margin-bottom: 16px; /* Adds space between paragraphs */
    text-indent: 5em;
}
.book-details {
    background-color: #f9f9f9; /* Light grey background for the book details */
    border-left: 5px solid #ff4848; /* Blue left border for emphasis */
    padding: 15px; /* Padding for spacing inside the box */
    margin: 20px 0; /* Margin for spacing outside the box */
    font-family: 'mooli-regular'; /* Stylish font for the book details */
}

.book-details h2, .book-details h3 {
    color: #333; /* Dark grey color for headings */
    margin-bottom: 5px; /* Small bottom margin for compact heading spacing */
}

.book-details p {
    color: #666; /* Medium grey color for paragraph text */
    margin-bottom: 5px; /* Small bottom margin to keep paragraphs tight */
}


.contact-section {
    background-color: #ffffff; /* White background for clarity */
    padding: 20px; /* Padding for spacing */
    margin: 20px; /* Margin for spacing from other elements */
    border-radius: 8px; /* Rounded corners for a softer look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

.contact-info {
    font-family: 'mooli-regular'; /* Stylish font for contact info */
    margin-bottom: 20px; /* Space before the form starts */
}

.contact-form {
    display: flex;
    flex-direction: column; /* Stack form elements vertically */
    gap: 10px; /* Space between form elements */
}

.contact-form label {
    font-weight: bold; /* Bold labels for clarity */
    margin-bottom: 5px; /* Space between label and input */
}

.contact-form input,
.contact-form textarea {
    padding: 8px; /* Padding for input and textarea for comfort */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 4px; /* Rounded corners for inputs */
    width: 100%; /* Full width to fill the form */
}

.contact-form button {
    background-color: #ff4848; /* Theme color for button */
    color: white; /* White text for visibility */
    padding: 10px 15px; /* Padding for comfort */
    border: none; /* No border for a cleaner look */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.contact-form button:hover {
    background-color: #e43f3f; /* Darker shade on hover for interaction feedback */
}
.comment {
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.comment-author {
    font-weight: bold;
    color: #333;
}
.comment-email {
    color: #777;
    font-size: 0.9em;
}
.comment-body {
    color: #444;
    line-height: 1.6;
}
.leave-a-comment-content {
    background-color: #ffffff;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}


.comment-section{
    padding-top: 20px;
    background-color: #4d4d4d;
    padding-bottom: 10px;
    
}

.form-control{
    padding: 10px !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-size: 16px !important;
}
.card-body{
    padding: 10px !important;
}
.row span{
    font-size: 15px;
}
.reply a{
    color: #ff4848; 
    text-decoration: none;
}
.reply a:hover{
    color: #ff4848; 
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}
.replies {
    padding-left: 20px;
    margin-top: 10px;
}

.card {
    border-radius: .25rem;
}
.comment-card {
    border: none !important;
    border-radius: 0 !important;
    
}
.card-body {
    padding: 0 2rem !important;
    line-height: 1 !important;
}

.reply a {
    color: #ff4848; 
    text-decoration: none;
}

.reply a:hover {
    color: #ff4848; 
    text-decoration: none;
    font-weight: bold;
}
.like-dislike {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.like-dislike button {
    padding: 2px 5px;
    font-size: 12px;
}
#comments-container {
    padding-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.681);
    border-radius: 5px;
}
.menu-toggle {
    display: none;
}
.navbar{
    display: block !important;
}
@media screen and (max-width: 768px) {
    .back-button {
       padding-left: 10px;
    }
    .about-me-title {
        text-align: center;
    }

    .about-section {
        margin: 0;
    }

    /* Center the In The News dropdown in mobile */
    .news-year {
        text-align: center;
    }

    .news-dropdown {
        left: 50% !important;
        transform: translateX(-50%);
        text-align: center;
    }
    .article p {
        margin-bottom: 16px; /* Adds space between paragraphs */
        text-indent: 2em;
    }
    .article{
        padding: 10px;
    }
    .home-image img {
        width: 95%;
        height: auto;
        max-height: 40vh;
    }
    .header {
        position: relative;
        padding: 10px;
    }

    .logo {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
        position:relative;
        top: 50%;
        left: 90%;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        outline: none !important;
    }

    .navbar {
        display: none !important;
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 300px; /* Adjust this value as needed */
        height: 100%;
        background-color: #ff4848;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .navbar.active {
        display: block !important;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar ul li {
        width: 100%;
        padding: 10px 0;
        text-align: center;
    }

    .navbar ul li a {
        color: #ffffff;
        font-size: 18px;
        text-align: center;
        display: block;
    }

    /* Center the news-navbar and dropdown in mobile */
    .news-navbar {
        width: 100%;
        justify-content: center;
    }

    .news-year {
        text-align: center;
        width: 100%;
    }

    .news-dropdown {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    .btn{
        margin-top: 10px !important;
    }
    .replies{
        padding-left: 5% !important;
    }
}

.article h3{
    text-align: center; 
    font-family: 'mooli-regular';
    font-size: 20px;
    font-weight: bold;
    margin-top: 50px;
}

.comment-email{
    display: none;
}
.User-Avatar{
    background-image: url('./Images/user.jpg');
    background-size: cover;
    background-position: center;
    width: 60px;
    height: 60px;
}
.news-navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    background-color: #ff4848;
}

.news-year {
    position: relative;
    color: #393939;
    cursor: pointer;
    transition: color 0.3s;
}

.news-year:hover {
    color: #ffffff;
}

.news-dropdown {
    display: none;
    position: absolute;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
}

.news-year:hover .news-dropdown {
    display: block;
}

.news-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #000000 !important   ;
    text-decoration: none;
}

.news-dropdown a:hover {
    background-color: #ff4848;
    color: #000000;
}

/* Survey Styling */
.survey-question {
    background-color: #f8f8f8;
    padding: 15px 20px;
    margin: 15px 0;
    border-left: 4px solid #ff4848;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.survey-question .question-text {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.survey-responses {
    padding-left: 20px;
    border-left: 2px solid #ddd;
    margin: 10px 0 10px 10px;
}

.survey-response {
    padding: 5px 0;
    color: #555;
    font-size: 0.95em;
}

.survey-summary {
    background-color: #ececec;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.survey-section-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff4848;
}

/* For mobile responsiveness */
@media screen and (max-width: 768px) {
    .survey-question {
        padding: 10px 15px;
    }

    .survey-responses {
        padding-left: 15px;
    }

    .survey-section-title {
        font-size: 20px;
    }
}

/* Publisher and Purchase Section Styling */
.publisher-purchase-section {
    background-color: #f9f9f9;
    border-top: 3px solid #ff4848;
    margin: 30px 0 0 0;
    padding: 25px;
    border-radius: 0 0 8px 8px;
}

.publisher-purchase-container {
    display: flex;
    justify-content: space-between;
    gap: 200px;
    max-width: 800px;
    margin: 0 auto;
}

.publisher-info, .purchase-info {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff4848;
}

.publisher-info h3, .purchase-info h3 {
    color: #393939;
    font-family: "Prata", serif;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #ff4848;
    padding-bottom: 8px;
}

.publisher-details p, .purchase-links p {
    margin: 8px 0;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.publisher-details p:first-child {
    font-size: 18px;
    color: #ff4848;
}

.publisher-details a, .purchase-links a {
    color: #ff4848;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.publisher-details a:hover, .purchase-links a:hover {
    color: #e43f3f;
    text-decoration: underline;
}

.purchase-links a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.purchase-links a .fa-amazon {
    color: #ff9900;
}

.purchase-links a .fa-book {
    color: #ff4848;
}

.purchase-links a:hover .fa-amazon {
    color: #e68900;
}

.purchase-links a:hover .fa-book {
    color: #e43f3f;
}

.purchase-links p {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.purchase-links p:last-child {
    border-bottom: none;
}

/* Mobile responsiveness for publisher-purchase section */
@media screen and (max-width: 768px) {
    .publisher-purchase-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .publisher-info, .purchase-info {
        padding: 15px;
    }
    
    .publisher-info h3, .purchase-info h3 {
        font-size: 20px;
    }
    
    .publisher-purchase-section {
        padding: 15px;
        margin: 20px 0 0 0;
    }
}