/* assets/css/studies_section.css */
.studies-section-wrapper { padding-top: 10px; font-family: 'Cairo', sans-serif; }

/* 🌟 الهيدر 🌟 */
.archive-header-card { background: linear-gradient(135deg, #0f172a, #064e3b); border-radius: 24px; padding: 50px 40px; color: white; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 5px solid #10b981; margin-bottom: 35px; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; }
.archive-header-card::before { content: "\f02d"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; top: -30px; font-size: 200px; color: rgba(255,255,255,0.02); z-index: 0; pointer-events: none; }
html[dir="rtl"] .archive-header-card::before { left: -20px; }
html[dir="ltr"] .archive-header-card::before { right: -20px; }

.ahc-ar { flex: 1; min-width: 300px; position: relative; z-index: 1; border-left: 1px dashed rgba(255,255,255,0.2); padding-left: 20px;}
.ahc-ar h1 { font-size: 28px; font-weight: 900; margin: 0 0 15px 0; font-family: 'Tajawal', sans-serif; color: #a7f3d0; }
.ahc-ar p { font-size: 15px; color: #f8fafc; margin: 0; line-height: 1.8; font-weight: 600; }

.ahc-en { flex: 1.2; min-width: 300px; position: relative; z-index: 1; text-align: left; }
.ahc-en h1 { font-size: 22px; font-weight: 900; margin: 0 0 10px 0; font-family: 'Arial', sans-serif; color: #fcd34d; letter-spacing: -0.5px;}
.ahc-en p { font-size: 13px; color: #cbd5e1; margin: 0; line-height: 1.6; font-family: 'Arial', sans-serif; text-align: justify;}

.premium-counters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; padding: 0; }
.premium-stat-card { background: #ffffff; border-radius: 24px; padding: 25px 20px; display: flex; align-items: center; gap: 20px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(15,23,42,0.03); }
.glow-icon-box { width: 65px; height: 65px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: white; flex-shrink: 0; }
.stat-co2 { border-right: 5px solid #10b981; } .stat-co2 .glow-icon-box { background: linear-gradient(135deg, #10b981, #047857); }
.stat-water { border-right: 5px solid #0ea5e9; } .stat-water .glow-icon-box { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.stat-count { border-right: 5px solid #f59e0b; } .stat-count .glow-icon-box { background: linear-gradient(135deg, #f59e0b, #b45309); }
html[dir="ltr"] .stat-co2, html[dir="ltr"] .stat-water, html[dir="ltr"] .stat-count { border-right: none; border-left: 5px solid; }
html[dir="ltr"] .stat-co2 { border-left-color: #10b981; }
html[dir="ltr"] .stat-water { border-left-color: #0ea5e9; }
html[dir="ltr"] .stat-count { border-left-color: #f59e0b; }
.stat-meta-info h4 { margin: 0; font-size: 34px; font-weight: 900; color: #0f172a; font-family: 'Courier New', monospace; line-height: 1; letter-spacing: -1px; }
.stat-meta-info p { margin: 5px 0 0 0; font-size: 13px; font-weight: 800; color: #64748b; }

/* 🌟 تنسيقات الرصيد الكامن (The Goldmine Banner) 🌟 */
.latent-mini-banner { background: #1e293b; border: 1px solid #475569; border-radius: 20px; padding: 25px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.latent-mini-text h3 { margin: 0 0 8px 0; color: #f8fafc; font-weight: 900; font-size: 18px; font-family: 'Arial', sans-serif; display: flex; align-items: center; gap: 8px; text-align: left;}
.latent-mini-text p { margin: 0; color: #94a3b8; font-size: 12px; font-weight: normal; font-family: 'Arial', sans-serif; text-align: left; max-width: 500px;}
.latent-mini-stats { display: flex; gap: 15px; flex-wrap: wrap; }
.lm-stat { background: rgba(255,255,255,0.05); padding: 15px 25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); text-align: center; min-width: 140px; backdrop-filter: blur(5px); }
.lm-stat h4 { margin: 0; font-size: 26px; color: #fcd34d; font-weight: 900; font-family: 'Courier New', monospace; letter-spacing: -1px;}
.lm-stat span { font-size: 10px; color: #cbd5e1; font-weight: bold; text-transform: uppercase; display: block; margin-top: 5px; }

/* 🌟 تصميم الكروت الهندسي 🌟 */
.premium-studies-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }
.luxury-study-card { background: #ffffff; border-radius: 16px; border: 1px solid #cbd5e1; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; position: relative; }
.luxury-study-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(15,23,42,0.08); border-color: #10b981; }

.study-img-box { width: 100%; height: 150px; background: #cbd5e1; overflow: hidden; position: relative; z-index: 1; border-bottom: 3px solid #10b981; }
.study-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.9); }
.luxury-study-card:hover .study-img-box img { transform: scale(1.05); filter: brightness(1); }

.study-badge { position: absolute; top: 12px; right: 12px; background: rgba(15, 23, 42, 0.9); color: white; padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 900; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; gap: 5px;}
html[dir="ltr"] .study-badge { right: auto; left: 12px; }

.luxury-card-body { padding: 20px; flex-grow: 1; z-index: 1; position: relative; }
.luxury-study-title { font-size: 18px; font-weight: 900; color: #0f172a; margin: 0 0 12px 0; font-family: 'Tajawal', sans-serif; line-height: 1.4; }
.study-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #64748b; font-weight: bold; margin-bottom: 12px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 12px;}
.study-meta span { display: flex; align-items: center; gap: 5px; background: #f8fafc; padding: 4px 8px; border-radius: 4px; border: 1px solid #f1f5f9; }

.study-summary-container { position: relative; margin-bottom: 10px; background: #f8fafc; padding: 12px; border-radius: 8px; border-right: 3px solid #10b981; }
html[dir="ltr"] .study-summary-container { border-right: none; border-left: 3px solid #10b981; }
.luxury-study-desc { font-size: 13px; color: #334155; line-height: 1.8; margin-bottom: 0; font-weight: 600; text-align: justify; transition: max-height 0.4s ease; }
.content-truncated { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-expanded { display: block; }
.read-more-btn { background: #10b981; border: none; color: white; font-family: 'Cairo'; font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; transition: 0.3s; }
.read-more-btn:hover { background: #064e3b; }

.luxury-card-footer { padding: 15px 20px; border-top: 1px solid #e2e8f0; background: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 1; position: relative; }
.btn-action-req { background: #0f172a; color: white; padding: 12px 15px; border-radius: 8px; font-size: 13px; font-weight: 900; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px; font-family: 'Cairo'; width: 100%; justify-content: center; transition: 0.3s; }
.btn-action-req:hover { background: #10b981; box-shadow: 0 5px 10px rgba(16, 185, 129, 0.2); transform: translateY(-2px); }

.copyright-warning { background: #0f172a; color: #94a3b8; padding: 25px; border-radius: 16px; margin-top: 50px; text-align: center; border: 1px solid #334155; position: relative; overflow: hidden; }
.copyright-warning::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #10b981, #d97706); }
.copyright-warning h4 { color: #f8fafc; font-size: 18px; font-weight: 900; margin: 0 0 10px 0; font-family: 'Tajawal'; display: flex; align-items: center; justify-content: center; gap: 8px; }
.copyright-warning p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.8; }

/* 🌟 النوافذ المنبثقة للطلب 🌟 */
.req-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.85); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.req-modal { background: white; width: 92%; max-width: 500px; border-radius: 20px; padding: 30px; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.4); max-height: 90vh; overflow-y: auto; border-top: 8px solid #064e3b; animation: slideUp 0.3s ease-out;}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-modal { position: absolute; top: 20px; left: 20px; font-size: 24px; color: #94a3b8; cursor: pointer; transition: 0.2s; background: none; border: none;}
html[dir="ltr"] .close-modal { left: auto; right: 20px; }
.close-modal:hover { color: #ef4444; transform: rotate(90deg); }

.modal-field-group { margin-bottom: 15px; }
html[dir="rtl"] .modal-field-group label { text-align: right; }
html[dir="ltr"] .modal-field-group label { text-align: left; }
.modal-field-group label { display: block; font-weight: 800; font-size: 12px; color: #1e293b; margin-bottom: 5px; }
.modal-field-group input, .modal-field-group textarea, .modal-field-group select { width: 100%; padding: 10px 15px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: 'Cairo'; font-weight: bold; font-size: 13px; box-sizing: border-box; background-color: #f8fafc; transition: 0.3s; }
html[dir="rtl"] .modal-field-group input, html[dir="rtl"] .modal-field-group textarea, html[dir="rtl"] .modal-field-group select { text-align: right; }
html[dir="ltr"] .modal-field-group input, html[dir="ltr"] .modal-field-group textarea, html[dir="ltr"] .modal-field-group select { text-align: left; }
.modal-field-group input:focus, .modal-field-group textarea:focus, .modal-field-group select:focus { border-color: #10b981; background: white; outline: none; }
.btn-modal-submit { width: 100%; background: linear-gradient(135deg, #10b981, #064e3b); color: white; padding: 12px; border: none; border-radius: 8px; font-weight: 900; font-family: 'Cairo'; font-size: 15px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; transition: 0.3s; }
.btn-modal-submit:hover { box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3); transform: translateY(-2px); }