html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100%;
}

.content {
    background-image: url('cover-beranda.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    width: 100%;
    min-height: 640px;
    position: relative;
}

.container {
    position: relative;
    min-height: 640px;
    width: 100%;
}

.vertical-navbar {
    font-family: 'Afacad Flux', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.vertical-navbar .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    background-color: rgba(249, 249, 249, 0.8);
    transition: transform 0.3s ease;
    max-width: 350px;
    min-width: 300px;
    min-height: 170px;
    box-sizing: border-box;
}

.vertical-navbar .menu-item:hover {
    transform: translateY(-10px);
    background-color: #ffffff;
}

.vertical-navbar .menu-item i {
    font-size: 18px;
    margin-bottom: 5px;
}

.vertical-navbar .menu-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.vertical-navbar .menu-text h3 {
    font-size: 16px;
    color: #000000;
    margin: 5px 0;
}

.vertical-navbar .menu-text p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.sub-content {
    position: relative;
    min-height: auto;
    width: 100%;
    background-color: rgba(249, 249, 249, 0.7);
}

.sub-content2 {
    position: relative;
    min-height: auto;
    width: 100%;
    background-color: #31c2af;
}

.statistik-sekolah {
    background-color: #000000;
    padding: 20px 20px;
    text-align: center;
}

.statistik-sekolah h2 {
    font-size: 32px;
    font-weight: none;
    font-family: 'Barlow Condensed', sans-serif;
    margin-bottom: 10px;
    padding-bottom: 10px;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.statistik-container {
    display: flex;
    justify-content: space-between;
    gap: 3px;
}

.statistik-item {
    flex: 1;
    background-image: url('psb-online/bg1.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px 0 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.statistik-item i {
    font-size: 30px;
    padding: 10px;
    border-radius: 3px;
    color: #ffffff;
}

.jumlah {
    margin-top: 10px;
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
}

.statistik-item p {
    padding: 10px;
    border-radius: 3px;
    background-color: rgba(249, 249, 249, 0.8);
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    font-family: 'Afacad Flux', sans-serif;
}

.main-posts {
    display: flex;
    flex-direction: column;
    margin: 40px;
}

.posts-title {
    font-size: 32px;
    font-weight: none;
    font-family: 'Barlow Condensed', sans-serif;
    color: #000000;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #000000;
}

.posts-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.post {
    background-color: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    flex: 1;
    width: calc(33.33% - 20px);
}

.post-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.post-link:hover {
    opacity: 0.6;
}

.post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post h3 {
    font-size: 26px;
    color: #777;
    margin: 10px 0;
}

.post h3 a {
    text-decoration: none;
    color: #000000;
}

.post h3 a:hover {
    text-decoration: underline;
    color: #000000;
}

.post-meta {
    font-size: 12px;
    color: #000000;
    margin: 10px 0;
}

.post-meta a {
    text-decoration: none;
    color: #000000;
}

.post-meta a:hover {
    text-decoration: underline;
    color: #000000;
}

.featured-posts {
    background-color: #000000;
    display: flex;
    flex-direction: column;
    padding: 0 40px 20px 40px;
}

.featured-posts-title {
    font-size: 32px;
    font-weight: none;
    font-family: 'Barlow Condensed', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #ffffff;
}

.featured-posts-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.featured-post {
    background-color: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    flex: 1;
    width: calc(33.33% - 20px);
}

.featured-post-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: all 0.3s ease;
}

.featured-post-link:hover {
    opacity: 0.6;
}

.featured-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-post h3 {
    font-size: 20px;
    color: #ffffff;
    margin: 10px 0;
}

.featured-post h3 a {
    text-decoration: none;
    color: #ffffff;
}

.featured-post h3 a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.featured-post-meta {
    font-size: 12px;
    color: #ffffff;
    margin: 10px 0;
}

.featured-post-meta a {
    text-decoration: none;
    color: #ffffff;
}

.featured-post-meta a:hover {
    text-decoration: underline;
    color: #ffffff;
}

.comments-section {
    width: auto;
    margin: 40px;
}

.comments-title {
    font-size: 24px;
    text-align: left;
    margin-bottom: 10px;
}

.comments-section .divider {
    border: none;
    border-top: 2px solid #ccc;
    margin-bottom: 20px;
}

.scroll-button-old {
    padding: 10px 15px;
    background-color: #8dbeff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.scroll-button-old:hover {
    background-color: #78a3ff;
}

.scroll-button-new {
    padding: 10px 15px;
    background-color: #8dbeff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.scroll-button-new:hover {
    background-color: #78a3ff;
}

.comments-container {
    display: flex;
    gap: 20px;
    overflow: hidden;
    position: relative;
    padding: 20px 5px;
}

.comment {
    display: flex;
    background-color: #f9f9f9;
    padding: 15px;
    width: calc(33.33% - 20px);
    opacity: 0;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 8px 8px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.comment.show {
    opacity: 1;
    transform: translateY(0);
}

.comment-icon {
    width: 110px;
    height: 100%;
    background-color: #ddd;
    margin-right: 15px;
}

.comment-details {
    text-align: left;
}

.comment-author {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.comment-program {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    margin-bottom: 10px;
}

.comment-text {
    font-size: 14px;
    color: #333;
}

.comment-form {
    margin-top: 40px;
}

.comment-form h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-name,
.input-email {
    width: calc(50% - 10px);
    padding: 10px;
    border: 1px solid #ccc;
}

.input-comment {
    width: calc(100% - 30px);
    padding: 15px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    resize: none;
}

.input-name:focus,
.input-email:focus,
.input-comment:focus {
    border: 1px solid #ccc;
    outline: none;
}

.submit-button {
    padding: 10px 20px;
    background-color: #8dbeff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #78a3ff;
}

@media (max-width: 768px) {
    .content {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        min-height: 310px;
    }
    
    .container {
        min-height: 310px;
    }
    
    .vertical-navbar {
        display: none;
    }
        
    .statistik-sekolah {
        padding: 5px;
    }
    
    .statistik-item {
        margin: 3px;
    }
    
    .statistik-item i {
        font-size: 14px;
        padding: 5px;
    }
    
    .jumlah {
        font-size: 24px;
        color: #ffffff;
    }
    
    .statistik-item p {
        padding: 5px;
        font-size: 10px;
    }
        
    .main-posts {
        margin: 10px;
    }
    
    .post {
        margin: 0 5px;
    }
    
    .post img {
        height: 120px;
    }
    
    .post h3 {
        font-size: 18px;
        margin: 5px 0;
    }
    
    .post-meta {
        font-size: 10px;
        margin: 10px 0;
    }
        
    .featured-posts {
        padding: 0 10px 5px 10px;
    }
    
    .featured-post {
        margin: 5px;
    }
    
    .featured-post img {
        width: 100%;
        height: 80px;
    }
    
    .featured-post h3 {
        font-size: 16px;
        margin: 5px 0;
    }
    
    .featured-post-meta {
        font-size: 10px;
        margin: 10px 0;
    }
        
    .comments-section {
        margin: 20px;
    }
    
    .scroll-button-old {
        padding: 5px 10px;
    }
    
    .scroll-button-new {
        padding: 5px 10px;
    }
    
    .submit-button {
        padding: 5px 10px;
    }
    
}

@media (max-width: 360px) {
    .content {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: bottom;
        min-height: 260px;
    }
    
    .container {
        min-height: 260px;
    }
    
    .vertical-navbar {
        display: none;
    }
        
    .statistik-sekolah {
        padding: 5px;
    }

    .statistik-sekolah h2 {
        font-size: 16px;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    
    .statistik-item {
        margin: 3px;
    }
    
    .statistik-item i {
        font-size: 14px;
        padding: 5px;
    }
    
    .jumlah {
        font-size: 24px;
        color: #ffffff;
    }
    
    .statistik-item p {
        padding: 5px;
        font-size: 6px;
    }
        
    .main-posts {
        margin: 10px;
    }
    
    .posts-title {
        font-size: 16px;
        padding-bottom: 0;
        margin-bottom: 10px;
    }
    
    .posts-container {
        gap: 0;
        width: 100%;
    }
    
    .post img {
        height: 120px;
    }
    
    .post h3 {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .post-meta {
        font-size: 8px;
        margin: 10px 0;
    }
    
    .featured-posts {
        padding: 0 10px 5px 10px;
    }
    
    .featured-posts-title {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 0;
    }
    
    .featured-posts-container {
        gap: 3px;
        width: 100%;
    }
    
    .featured-post img {
        width: 100%;
        height: 80px;
        object-fit: cover;
    }
    
    .featured-post h3 {
        font-size: 12px;
        margin: 5px 0;
    }
    
    .featured-post-meta {
        font-size: 6px;
        margin: 5px 0;
    }
    
    .comments-section {
        margin: 20px;
    }
    
    .scroll-button-old {
        padding: 5px 10px;
    }
    
    .scroll-button-new {
        padding: 5px 10px;
    }
    
    .submit-button {
        padding: 5px 10px;
    }
    
}

