body {
    background-color: #c8e2d3;
}

.adlheader {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    border: 10px solid #203a57;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

.adlheader img {
    max-height: 200px;
    width: auto;
    object-fit: cover;
    border: 3px solid #6C7A89;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.adlheader img:hover {
    transform: scale(1.05);
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.3);
}

.dailyadlheader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Make it fluid */
    max-width: 1000px; /* Default max size */
    margin: 20px auto;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.dailyadlheader:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.page-layout {
    display: flex;
    justify-content: space-between;
}

.sidebar-home,
.class-ads {
    width: 20%;
}

.main {
    flex: 1;
    width: 100%; /* Ensure it takes the full width of its container */
    max-width: 60%; /* Adjust based on your layout needs */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 5px solid #0f8a84;
    text-align: left;
    color: #333;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Prevents content overflow */
}

.newsPaper {
    flex: 1;
    width: 100%; /* Ensure it takes the full width of its container */
    max-width: 90%; /* Adjust based on your layout needs */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 5px solid #0f8a84;
    text-align: left;
    color: #333;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Prevents content overflow */
}

.main h1 {
    margin-top: 0;
    font-size: 2em;
    color: #007BFF;
}

.main p {
    font-size: 1em;
    line-height: 1.6;
}

.container-collaboration {
    text-align: center;
}

.collaboration {
    font-family: 'Georgia', serif;
    color: #2E4053;
    font-size: 2em;
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #F4ECF7;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #5D6D7E;
    display: inline-block;
    max-width: 80%;
}

.bookcovers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid layout */
    gap: 20px; /* Space between grid items */
    align-items: start; /* Aligns items to the start of each cell */
    justify-items: center; /* Centers items horizontally in each cell */
}

.bookcovers img {
    width: 100%; /* Image fills the cell */
    height: auto; /* Keeps aspect ratio */
    object-fit: cover; /* Ensures images cover the grid area */
}


.news h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

@media (min-width: 1800px) {
   .dailyadlheader{
    width: 100%;
    max-width: 1000px;
   }
}

@media (min-width: 1381px) and (max-width:1800)  {
    .dailyadlheader {
        max-width: 800px;
    }
  
}
/* Media Queries */
@media (min-width: 1231px) and (max-width:1380){
    .dailyadlheader {
        max-width: 600px; /* Adjusted max-width for smaller screens */
    }
   
}

@media (max-width: 991px) and (min-width:1230) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar-home,
    .class-ads,
    .main {
        width: 100%;
        margin-left: 0;
    }

    .newyear video {
        width: 100%;
    }
    .dailyadlheader {
        max-width: 400px;
    }
    .bookcovers {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Smaller min-width for columns */
    }
}

@media (max-width: 767px) {
    .dailyadlheader {
        max-width: 400px;
    }

    .collaboration {
        font-size: 1.5em;
        max-width: 100%;
    }

    .newyear video {
        max-width: 100%;
    }
}
