/* General Styles */
body {
    margin: 0;
    font-family: 'Times New Roman', Times, serif, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button {
    padding: 6px 12px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav li {
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    color: #333;
}

nav .login-signup {
    background-color: #fff;
    border: 1px solid #000;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

main {
    padding: 20px;
}

/* Main Image */
.main-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures the image covers the entire area */
    display: block;
    border-radius: 8px;
}

/* Image Slideshows */
.image-slideshows {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.slideshow-container {
    width: 48%;
}

.image-slideshow {
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.image-slideshow .slide {
    min-width: 100%;
    transition: transform 0.5s ease;
    text-align: center;
}

.image-slideshow img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.image-slideshow .nav {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    font-size: 18px;
    z-index: 2;
}

.image-slideshow .prev {
    left: 10px;
}

.image-slideshow .next {
    right: 10px;
}

footer {
    padding: 20px;
    background-color: #f0f0f0;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.footer-menu h3 {
    margin: 0;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.footer-menu ul li {
    margin: 5px 0;
}

.footer-menu ul li a {
    text-decoration: none;
    color: #333;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
}

/*about us*/
main {
    padding: 20px;
    text-align: center;
}

.carousel {
    position: relative;
    margin: 20px auto;
    width: 80%;
    max-width: 1000px;
}

.carousel-container {
    display: flex;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-slide {
    min-width: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
}

.carousel-prev, .carousel-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
}

.carousel-indicators .indicator {
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin: 0 5px;
    width: 10px;
    cursor: pointer;
}

.carousel-indicators .indicator.active {
    background-color: #007bff;
}

#about {
    padding: 40px 0;
    text-align: left;
    padding-left: 30px; 
}
/* Registration Section */
.registration {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.registration h1 {
    margin-bottom: 10px;
    font-size: 24px;
}

.registration p {
    margin-bottom: 20px;
    color: #666;
}

.registration form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.registration input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.registration .primary-button {
    width: 100%;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.registration .primary-button:hover {
    background-color: #333;
}

.or-separator {
    margin: 20px 0;
    color: #666;
}

.google-button {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.google-button:hover {
    border-color: #999;
}

.google-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.terms {
    font-size: 12px;
    color: #666;
    margin: 20px 0;
}

.login-option {
    font-size: 14px;
    color: #666;
}
/* Main Section */

/* Sidebar */
aside {
    width: 10%;
    padding-left: 20px;
}

aside h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.date-filter {
    display: flex;
    flex-direction: column;
}

.date-filter button {
    padding: 10px;
    margin-bottom: 10px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-list article {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.news-list img {
    width: 600px;
    height: 268px;
    margin-right: 20px;
    object-fit: cover;
    border-radius: 4px;
}

.news-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; 
}

.news-content a {
    color: #454245; 
    text-decoration: none; 
}

.news-content h2 {
    margin: 0;
    padding: 0;
}

.news-content p {
    margin-top: 10px;
}


/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .image-slideshows {
        flex-direction: column;
    }

    .slideshow-container {
        width: 100%;
    }

    .footer-menu {
        flex-direction: column;
        text-align: left;
    }

    .footer-menu div {
        margin-bottom: 10px;
    }
}


/* Book page */
.book-page {
  background-color: #f2f2f2;
  padding: 20px;
}

.book-page h1 {
  color: #333;
}

.book-page p {
  color: #666;
}

/* Community */
.community {
  background-color: #e6f2ff;
  padding: 20px;
}

.community h2 {
  color: #333;
}

.community p {
  color: #666;
}

/* Contact Us */
.contact-us {
  background-color: #f2f2f2;
  padding: 20px;
}

.contact-us h3 {
  color: #333;
}

.contact-us form {
  margin-top: 20px;
}

.contact-us input[type="text"],
.contact-us textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-us input[type="submit"] {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
