body {
    font-family: 'Inter', sans-serif;
}

.auth-buttons a {
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 6px;
    text-decoration: none;
}

.outline-btn {
    border: 1px solid purple;
    color: purple;
}

.fill-btn {
    background: purple;
    color: white;
}

main {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

.publish-btn {
    background: #7f3ce0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.delete-btn {
    background: transparent;
    color: red;
    border: 1px solid red;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}

input,
textarea {
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #7f3ce0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(127, 60, 224, 0.2);
}

.publish-btn {
    background: #7f3ce0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.publish-btn:hover {
    background: #6931c6;
    transform: scale(1.02);
}

.delete-btn {
    background: transparent;
    color: red;
    border: 1px solid red;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, color 0.2s ease;
}

.delete-btn:hover {
    background: red;
    color: white;
    transform: scale(1.02);
}

form label {
    font-weight: 600;
    margin-top: 10px;
}

main h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e1e1e;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #7f3ce0;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5e2db3;
    text-decoration: underline;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .carousel-section {
        width: 90%;
        margin: 20px auto;
        border-radius: 12px;
    }

    .carousel-item img {
        height: 250px;
    }

    .carousel-btn {
        font-size: 24px;
        padding: 6px 12px;
    }

    .carousel-content {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
        padding: 16px;
        box-shadow: none;
        background-color: #ffffff;
    }

    .carousel-content h3 {
        font-size: 20px;
    }

    .carousel-content p {
        font-size: 14px;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .filters-search {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filters-search select {
        flex: 1 1 30%;
        font-size: 13px;
    }

    .filters-search input[type="text"] {
        flex: 1 1 65%;
        min-width: 0;
        padding: 6px 8px;
        font-size: 13px;
        border: 1px solid #ccc;
        border-radius: 6px;
        transition: width 0.4s ease;
    }

    #search-btn {
        flex: 1 1 30%;
        max-width: none;
        padding: 8px 12px;
        background-color: #7f56d9;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
    }

    #search-input:focus {
        width: 100%;
        box-shadow: 0 0 0 2px #cbb0ff;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card img {
        height: 180px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }

    .footer-socials {
        gap: 20px;
    }
}