body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Georgia, serif;
    background-color: #EDE9E1;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.left-align {
    position: absolute;
    left: 20px;
    top: 80px;
}

.arrow-icon {
    width: 80px;
    height: 80px;
    font-size: 80px;
    display: inline-block;
    color: #333;
}

.container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
}

.Tittle {
    background: #e8e8e8;
    padding: 15px 15px 25px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 280px;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.Tittle:nth-child(1) {
    transform: rotate(-2deg);
}

.Tittle:nth-child(2) {
    transform: rotate(1deg);
}

.Tittle:nth-child(3) {
    transform: rotate(2deg);
}

/* Rotate all subsequent titles */
.Tittle:nth-child(n+4) {
    transform: rotate(2deg);
}

.Tittle:hover {
    transform: scale(1.02) rotate(0);
    z-index: 1;
}

.image-container {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
}

.Tittle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}

.Tittle img:hover {
    transform: scale(1.1);
}

.tape {
    width: 80px;
    height: 25px;
    background: linear-gradient(90deg, #E8D7A3, #F4E3B2, #E8D7A3);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    clip-path: polygon(0% 5%, 5% 10%, 0% 20%, 5% 30%, 0% 40%, 5% 50%, 0% 60%, 5% 70%, 0% 80%, 5% 90%, 0% 95%,
            100% 95%, 95% 90%, 100% 80%, 95% 70%, 100% 60%, 95% 50%, 100% 40%, 95% 30%, 100% 20%, 95% 10%, 100% 5%);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.caption {
    margin-top: 60px;
}

/* Fullscreen modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-button:hover {
    background: rgba(255, 255, 255, 1);
}

.form-group.dropdown {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-bottom: 20px;
}

.form-group label h6 {
    margin: 0;
    margin-right: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #333;
    color: white;
}

.page-item.active .page-link {
    background-color: #333;
    color: white;
    border-color: #333;
}

#prev,
#next {
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .left-align {
        position: absolute;
        left: 20px;
        top: 120px;
    }

    .arrow-icon {
        width: 60px;
        height: 60px;
        font-size: 60px;
    }

    .container {
        gap: 20px;
    }

    .Tittle {
        width: 240px;
    }

    .image-container {
        height: 260px;
    }

    .modal img {
        max-width: 70%;
        max-height: 70%;
    }
}

@media (max-width: 480px) {
    .left-align {
        position: absolute;
        left: 20px;
        top: 160px;
    }

    .arrow-icon {
        width: 40px;
        height: 40px;
        font-size: 40px;
    }
}