@charset "utf-8";

/* CSS Document */
.load-more-btn {
    background: #0099cc;
    border: none;
    padding: 12px 30px;
    color: #fff;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
}

.load-more-btn:hover {
    background: #0077aa;
}

.periodestar {
    font-size: 14px;
    height: 10px;
    width: 94%;
    border-radius: 0px;
    line-height: 30px;
    text-transform: capitalize;
    color: rgb(136, 143, 153);
    z-index: 20;
    right: 5%;
    text-align: left;
    letter-spacing: 2px;
    top: 0px;
    font-family: "Cairo", serif;
    font-weight: 400;
    padding-left: 4%;
    padding-right: 0%;
}

.periodestar .fa {
    margin-left: 1px;
    font-size: 16px;
    float: right;
    color: #f0ad4e;
}

.new-card-container {
    width: 98%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* IMPORTANT */
    padding: 40px 10px;
    direction: rtl;

}

.new-card-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1a365d;
    font-size: 2.5rem;
}

.new-card-row {
    width: 98%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* IMPORTANT */
    gap: 25px;
    padding: 40px 10px;
    direction: rtl;
}

.new-card {
    flex: 1 1 calc(33.33% - 25px);
    /* 3 per row */
    max-width: calc(33.33% - 25px);
    /* prevent growing */
    text-align: center;
    position: relative;
    cursor: pointer;
    min-width: 240px;
    direction: rtl;
    /* FORCE CARD START FROM RIGHT */
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: all 0.4s ease;

}

.new-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.new-card-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden
}

.new-card-image:hover .new-card-image::before {
    transform: translateY(100%);
    /* White shadow effect */
}

.new-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateY(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.new-card-image:hover::before {
    transform: translateY(100%);
}

.new-card-image img {
    height: 230px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.new-card:hover .new-card-image img {
    transform: scale(1.3);
    /* Zoom effect */
}

.new-card-image::after {
    content: "";
    position: absolute;
}

.new-card-content {
    padding: 20px;
}

.new-card-name {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: right
}

.new-card-details {
    margin-bottom: 20px;
}

.new-card-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.new-card-label {
    color: #718096;
    font-weight: 500;
}

.new-card-value {
    color: #2d3748;
    font-weight: 600;
}

.new-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.new-card-price {
    font-size: 1.5rem;
    color: #2b6cb0;
    font-weight: 700;
}

.new-card-unit {
    font-size: 0.9rem;
    color: #718096;
}

.new-card-button {
    background-color: #2b6cb0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-card-button:hover {
    background-color: #2c5282;
}

.new-card-button::after {
    content: "←";
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .new-card {
        max-width: 100%;
    }

    .new-card-row {
        gap: 20px;
    }
}