/* General Style */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Navigation Bar and Accessibility Button Styling */
body{
    font-family: 'Avantgarde', Century Gothic, CenturyGothic, AppleGothic, sans-serif;
    
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 8vh;
    background-color: #FFA6B0;
    padding: 0 20px;
    transition: background-color 0.3s;
}

#increase-font-size {
    background-color: #FFA6B0;
    color: #003b49;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 0px;
}

#decrease-font-size {
    background-color: #FFA6B0;
    color: #003b49;
    border: none;
    padding: 0px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 0px;
}

.burger {
    display: none; 
    background-color: transparent;
    color: #003b49;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

.burger .line {
    width: 25px;
    height: 3px;
    background-color: #003b49;
    margin: 5px 0;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-right: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #003b49;
    font-weight: bold;
    font-size: 16px;
    padding: 5px;
    display: flex;
}

/* Home Styling */
#Home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;;
    color: #003b49;
    height: 100vh; /* Cover the entire screen */
}

#Home h1 {
    margin-top: 15%;
    text-align: center;
    position: flex;
    flex-direction: column;
}

#Home  h2 {
    margin: 0%;
    text-align: center;
    position: flex;
    flex-direction: column;
}

#Home img {
    max-width: 100%;
    height: auto;
    position: flex;
    flex-direction: column;
   }

#About {
    display: flex;
    font-size: 16px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #31A1AE;
    color: #fff;
    min-height: 100vh; 
    box-sizing: border-box;
}

.admin-panel {
    max-width: 40%;
    width: 100%;
    gap: 20px; 
    justify-content: center; 
    margin: 0 auto; 
    padding: 20px;
    box-sizing: border-box;;
    border: 1px solid #ccc;
}

#About h1{
    padding: 2em;
    text-justify: none;
    position: flex;
    flex-direction: column;
}

.blog p {
    padding: 2em;
    text-justify: none;
    position: flex;
    flex-direction: column;
}

#posts-container {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    margin: 0 auto; 
    padding: 20px;
    box-sizing: border-box;;
}

.post-card {
    width: calc(33.33% - 20px); 
    max-width: 300%;
    margin: 0 10px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color:#003b49;
    padding: 20px;
    box-sizing: border-box;
    text-align: center; 
    overflow-y: hidden;
}

.post-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.post-card p {
    font-size: 1em;
    line-height: 1.5;
    padding: 10px;
    position: relative;
    
    max-height: 4.5em; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.post-image img {
    width: auto;
    height: 30vh;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

#image-upload-container {
    position: relative;
    width: 20%;
    max-width: 100%;
    padding: 10px;
    border: 2px dashed #ccc;
    text-align: center;
    margin-bottom: 20px;
}

/* Style for the "Read More" button */
.read-more-button {
    background-color: #31A1AE; /* Blue background color */
    color: #fff; /* White text color */
    border: none; /* Remove border */
    padding: 10px 20px; /* Add padding */
    font-size: 16px; /* Set font size */
    cursor: pointer; /* Add pointer cursor on hover */
    border-radius: 5px; /* Add rounded corners */
    margin-top: 10px;
}

/* Hover effect for the "Read More" button */
.read-more-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
/* Rating Stars Styling */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #003b49;
    cursor: pointer;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: gold;
}

/* Comments Styling */
.comments {
    margin-top: 20px;
}

.comment-box textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 16px;
}

.comment-box textarea:focus {
    outline: 2px solid #003b49;
}



@keyframes burgerOpen {
    from {
        opacity: 0;
        transform: translateX(100%); /* Start position: off-screen to the right */
    }
    to {
        opacity: 1;
        transform: translateX(0); /* End position: fully visible */
    }
}

/* Additional styles for burger icon animation */
.burgerToggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burgerToggle .line2 {
    opacity: 0;
}

.burgerToggle .line3 {
    transform: rotate(45deg) translate(5px, 6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    #posts-container {
        flex: 1 1 calc(33.333% - 40px); /* 2 columns for medium screens */
    }
}

@media (max-width: 768px) {
    #posts-container {
        width: calc(50% - 20px); /* 1 column for small screens */
    }
    .burger {
        display: block;
        animation: burgerOpen 0.3s ease forwards; 
    }
}
.nav-open .burger {
    display: none;
}

.nav-open .nav-list {
    display: flex; /* Ensure nav-list is visible when the menu is open */
    flex-direction: column; /* Stack menu items vertically */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFA6B0;
    z-index: 10;
}