/* General Styles */
body {
    background-color: #FAFFFF;
    color: #333;
    margin: 0;
    font-family: 'Figtree', sans-serif;
    text-align: center;
    padding-top: 80px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    font-family: 'Pacifico', cursive;
    font-weight: bold;
    width: 100%;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px hsla(235, 80.10%, 33.50%, 0.2);
    box-sizing: border-box;
}

.navbar .menu {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.navbar .menu-left, .navbar .menu-center, .navbar .menu-right {
    display: flex;
    align-items: center;
}

.navbar .menu-left {
    justify-content: flex-start;
    width: 33%;
}

.navbar .menu-center {
    justify-content: center;
    flex-grow: 1;
    width: 33%;
}

.navbar .menu-right {
    justify-content: flex-end;
    width: 33%;
}

.navbar a {
    color: #555;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.navbar a.active,
.navbar a:hover {
    background-color: rgb(74, 157, 217);
    color: #fff;
}

.navbar button:hover {
    background-color: rgb(74, 157, 217);
    color: #fff;
    border-radius: 5px;
}

.navbar .hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .navbar .menu a {
        padding: 10px 20px;
        width: 100%;
        text-align: left;
    }

    .navbar .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
    }

    .navbar .hamburger i {
        transition: transform 0.3s ease;
    }

    .navbar.active .hamburger i {
        transform: rotate(90deg);
    }

    .navbar.active .menu {
        display: flex;
    }
}

/* Post Form */
.post-form {
    background-color: rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    margin: 30px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

.post-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.post-form textarea {
    width: 100%;
    height: 30px;
    font-size: 18px;
    padding: 14px;
    margin-top: 12px;
    margin-bottom: 24px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
}

/* Make textarea even bigger on desktop screens */
@media (min-width: 1024px) {
    .post-form textarea {
        height: 280px;
        font-size: 20px;
        padding: 16px;
    }

    .post-form {
        max-width: 800px;
        padding: 60px;
    }
}


.post-form input[type="file"] {
    margin-top: 10px;
    font-size: 14px;
}

.post-form button {
    background: linear-gradient(135deg, #787569, #b2a287);
    font-size: 18px;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.post-form button:hover {
    background: linear-gradient(135deg, #b2a287, #787569);
    transform: scale(1.05);
}

/* Posts */
.posts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-card {
    background: linear-gradient(135deg, #ffffff, #f4f9f9);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    text-align: left;
    border-left: 6px solid #87c4d3;
    margin-bottom: 2rem;
    transition: 0.3s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.post-content {
    min-height: 3em; /* Increased for clearer visibility */
    line-height: 1.4em; /* Slightly larger line height */
    overflow: hidden;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .video-container video {
        display: none;
    }

    .video-container {
        background: url('/bgimg/bg6.jpg') no-repeat center center;
        background-size: cover;
    }
}

/* Like Share */
.like-share button {
    color: gray;
    transition: color 0.3s, transform 0.3s;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.like-share button:hover {
    transform: scale(1.2);
    color: #00c2cb;
}

.like-share button.liked {
    color: #00c2cb;
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Comment Section */
textarea[name="content"] {
    width: 90%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    transition: border-color 0.3s;
}

textarea[name="content"]:focus {
    border-color: rgb(100, 130, 155);
    outline: none;
}

button[type="submit"] {
    background-color: #126880;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.border-b {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin: 10px 0;
}

.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6em;
    position: relative;
}

