@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4f4f4 0%, #e6eefa 50%, #a2aac0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.blog-container {
    margin: 120px auto 60px;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.blog-title {
    background: linear-gradient(to right, #003366, #1f4d7a);
    padding: 30px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out forwards;
    position: relative;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.blog-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #003366, #ff6347, #003366);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.blog-title:hover::before {
    transform: scaleX(1);
}

.blog-title h2 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: inline-block;
}

.blog-list {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
    animation: fadeIn 0.8s ease-out forwards;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.blog-detay {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.blog-detay img {
    width: 70%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin: 20px 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    object-fit: cover;
}

.blog-detay img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.blog-detay h4 {
    font-size: 24px;
    color: #003366;
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.blog-detay p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 800px;
}

/* Comment Section */
.blog-list h4 {
    color: #003366;
    font-size: 22px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.blog-list h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #ff6347;
}

.blog-list textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    margin-bottom: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.blog-list textarea:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 51, 102, 0.1);
}

.blog-list textarea::placeholder {
    color: #aaa;
}

.blog-list button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #003366, #1f4d7a);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.blog-list button:hover {
    background: linear-gradient(45deg, #ff6347, #ff8367);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 99, 71, 0.4);
}

.blog-list button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.blog-list button:hover::before {
    left: 100%;
}

.blog-list strong {
    display: block;
    margin: 20px 0;
    color: #003366;
    font-size: 16px;
}

/* Comment Cards */
.comment-card {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid #003366;
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.comment-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.comment-card:nth-child(even) {
    animation-delay: 0.2s;
}

.comment-card:hover {
    background-color: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-left: 4px solid #ff6347;
}

.comment-card strong {
    font-size: 16px;
    color: #003366;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.comment-card:hover strong {
    color: #ff6347;
}

.comment-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Like Button */
.like-btn-container {
    position: absolute;
    top: 15px;
    right: 15px;
}

.like-btn {
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.like-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(255, 99, 71, 0.3);
}

/* Footer */
.footer {
    background-color: #003366;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer p {
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-media img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-media img:hover {
    transform: translateY(-5px) rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 99, 71, 0.4);
}

/* Responsive Design */
@media screen and (max-width: 768px) {

    
    .blog-container {
        margin-top: 100px;
    }
    
    .blog-title {
        padding: 20px;
    }
    
    .blog-title h2 {
        font-size: 22px;
    }
    
    .blog-list {
        padding: 20px;
    }
    
    .blog-detay img {
        width: 100%;
    }
    
    .blog-detay p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .comment-card {
        padding: 15px;
    }
}