* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo-icon {
    width: 90px;
    /* height: 60px; */
    background-color: transparent;
    mix-blend-mode: multiply;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    font-size: 15px;
    color: #333;
    position: relative;
    padding: 5px 8px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #7f56d9;
}

.sign-in {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sign-in.outline {
    background: transparent;
    color: #7f56d9;
    border: 1px solid #7f56d9;
}

.sign-in.filled {
    background: #7f56d9;
    color: white;
    border: none;
}

.blog-header {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.filters-search select,
.filters-search input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.filters-search select {
    width: 100px;
    margin-left: auto;
}

.filters-search button {
    padding: 6px 12px;
    background-color: #7f56d9;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.manage-posts-btn {
    padding: 10px 20px;
    background-color: #7f56d9;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.manage-posts-btn:hover {
    background-color: #5e3ca5;
}

.carousel-section {
    position: relative;
    width: 1250px;
    margin-left: 50px;
    margin-top: 30px;
    border-radius: 20px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-item {
    position: relative;
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-content {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    width: 85%;
    max-width: 720px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.carousel-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.carousel-content p {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 16px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #7f56d9;
    color: #7f56d9;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.read-more-btn:hover {
    background-color: #7f56d9;
    color: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    width: 60px;
    height: 60px;
    padding: 8px 16px;
    z-index: 999;
}

.carousel-btn.prev {
    left: -25px;
    background-color: #8854d0;
}

.carousel-btn.next {
    right: -25px;
    background-color: #8854d0;
}

.blog-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

.blog-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-content a {
    color: #7f56d9;
    text-decoration: none;
    font-weight: 500;
}

.custom-footer {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    color: #333;
}

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

.footer-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #8854d0;
}

.footer-socials {
    display: flex;
    gap: 30px;
}

.footer-socials img {
    width: 40px;
    height: 40px;
}

.footer-divider {
    margin: 30px 0;
    height: 2px;
    background-color: #b388ff;
    width: 100%;
    max-width: 1300px;
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
}

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
}

.arrow-btn {
    background: linear-gradient(135deg, #b388ff, #8854d0);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.arrow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    margin: 0 12px;
    font-weight: bold;
}

.carousel{
    cursor: pointer;
}

@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;
    }
}