@font-face {
    font-family: 'Cairo';
    src: url('/asset/font/static/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/asset/font/static/Cairo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Cairo', sans-serif;
    padding: 20px;
    min-height: 100vh;
    
    
}

.header {
    text-align: center;
    margin: 20px 0 40px;
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9b0;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
    /* max-width: 1400px; */
    margin: 0 auto;
    background-color: #4a3e262b;
}

.card {
    width: 370px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

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

.img {
    height: 220px;
    overflow: hidden;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 1.5rem;
    color: #7f6c49;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #4a3e262b;;
    padding-bottom: 10px;
    padding-top: 10px;

}

.des {
    color: #7f6c49;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    min-height: 90px;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.qr-btn, .read-btn {
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    background:  #7f6c49;
    
}


.qr-btn:hover, .read-btn:hover {
    background:#7f6c49;
    transform: translateY(-3px);
}





.card-reacted {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.comment-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.4rem;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.comment-btn {
    color: #3498db;
}

.comment-btn:hover {
    transform: scale(1.2);
}

.comment-btn span {
    font-size: 0.85rem;
    color: #777;
}

/* التعديلات الرئيسية هنا: زيادة z-index للنوافذ */
.qr-overlay, .info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important; 
}

.qr-container, .info-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    direction: ltr;
    z-index: 100000 !important; 
}
.info-container li {
text-align: right;
}
.info-container * {
  direction: rtl;
}
.qr-container p{
    text-align: center !important;
}

.close-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    z-index: 1120; 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}
.close-icon:hover {
    background: #f5f5f5;
    transform: rotate(90deg);
}

.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    font-size: 1rem;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .card {
        width: 100%;
        max-width: 300px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}
