/*
Theme Name: یادمان شهید روح اله سالک
Theme URI: https://salek.ir/
Author: تیم توسعه گرافیک
Description: قالب کامل با طراحی گلس مورفیسم براق، مدیریت کامل نگارخانه، زندگینامه، نذر صلوات و سیستم خاطرات ارسالی.
Version: 18.0.0
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.35); 
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-shine: inset 0 0 30px rgba(255, 255, 255, 0.9), inset 2px 2px 10px rgba(255, 255, 255, 1);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --glass-blur: blur(25px);
  --accent: #b45309; 
  --text-main: #1e293b; 
  --text-muted: #475569; 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Vazirmatn', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #f1f5f9; color: var(--text-main); direction: rtl; line-height: 1.8; overflow-x: hidden; background-size: cover; background-position: center; background-attachment: fixed; }

.bg-shape-1 { position: fixed; top: -10%; right: -5%; width: 500px; height: 500px; background: #fcd34d; border-radius: 50%; filter: blur(90px); z-index: -2; }
.bg-shape-2 { position: fixed; bottom: 10%; left: -10%; width: 600px; height: 600px; background: #38bdf8; border-radius: 50%; filter: blur(100px); z-index: -2; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(245, 240, 230, 0.8) 100%); z-index: -1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.glass-box { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1.5px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-shine); border-radius: 30px; }

/* اصلاحات منو و ریسپانسیو موبایل */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); border-bottom: 1px solid #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.header-wrap { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.logo-area a { text-decoration: none; }
.logo-area h1 { font-family: 'Lalezar', cursive; font-size: 1.8rem; color: #0f172a; font-weight: normal; margin: 0;}
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: #0f172a; cursor: pointer; }
.main-nav { display: flex; gap: 15px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav li { margin: 0; padding: 0; }
.main-nav a { color: #1e293b; text-decoration: none; font-size: 1rem; padding: 8px 18px; border-radius: 20px; transition: 0.3s; font-weight: 700; display: inline-block; }
.main-nav a:hover, .main-nav a.active { background: rgba(15, 23, 42, 0.05); color: #064e3b; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-container { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); border-bottom: 1px solid #e2e8f0; box-shadow: 0 10px 15px rgba(0,0,0,0.05); display: none; }
    .nav-container.active { display: block; }
    .main-nav { flex-direction: column; gap: 0; padding: 10px 20px; align-items: stretch; }
    .main-nav a { padding: 15px 0; border-bottom: 1px dashed rgba(0,0,0,0.05); text-align: center; border-radius: 0; display: block; }
    .main-nav li:last-child a { border-bottom: none; }
}

/* صفحه اصلی */
.hero-wrapper { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; padding-top: 60px; }
.hero-glass-box { max-width: 750px; width: 90%; padding: 45px 30px 40px; text-align: center; }
.hero-avatar { width: 140px; height: 140px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.15); object-fit: cover; margin-top: -100px; margin-bottom: 20px; background: #fff; }
.hero-title { font-family: 'Lalezar', cursive; font-size: 3.6rem; color: #0f172a; margin-bottom: 15px; text-shadow: 0 2px 15px rgba(255,255,255,0.9); font-weight: normal; line-height: 1.2; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.7); color: var(--accent); padding: 8px 30px; border-radius: 30px; font-weight: 800; font-size: 1.05rem; margin-bottom: 25px; border: 1px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); line-height: 2; font-weight: 600; padding: 0 20px; }

.scroll-down-wrapper { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: #1e293b; transition: 0.3s; }
.scroll-down-wrapper:hover { color: var(--accent); }
.scroll-text { font-size: 0.95rem; font-weight: 800; background: rgba(255,255,255,0.4); padding: 6px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.8); }
.scroll-icon { font-size: 1.8rem; animation: bounce 2s infinite; background: rgba(255,255,255,0.5); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.9); color: var(--accent); }

.main-sections { min-height: 100vh; padding: 100px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: 'Lalezar', cursive; font-size: 3rem; color: #0f172a; font-weight: normal; margin-bottom: 10px; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); font-weight: 600;}

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; width: 100%; margin-bottom: 60px; }
.action-card { padding: 40px 25px; text-align: center; text-decoration: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; flex-direction: column; align-items: center; }
.action-card:hover { transform: translateY(-15px); border-color: #ffffff; background: rgba(255, 255, 255, 0.35); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(255,255,255,0.8); }
.card-icon-wrap { width: 85px; height: 85px; background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.3) 100%); border: 2px solid #fff; border-radius: 25px; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; color: var(--accent); margin-bottom: 25px; transition: 0.4s; }
.action-card:hover .card-icon-wrap { transform: scale(1.15) rotate(5deg); background: #fff; }
.action-card h3 { color: #0f172a; font-size: 1.45rem; font-weight: 900; margin-bottom: 12px; }
.action-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; font-weight: 600;}

/* Social Icons */
.social-area { display: flex; gap: 20px; justify-content: center; align-items: center; width: 100%; margin-top: 10px; }
.social-btn { width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--accent); text-decoration: none; border-radius: 50%; transition: all 0.3s ease; background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.social-btn:hover { transform: translateY(-8px) scale(1.1); background: #fff; box-shadow: 0 15px 25px rgba(0,0,0,0.1); color: #0f172a; }

/* نگارخانه */
.gallery-hero-bg { background: linear-gradient(135deg, #0f4c3a 0%, #115e59 100%); padding: 110px 0 40px; text-align: center; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); position: relative; z-index: 2; }
.gallery-hero-bg h2 { font-family: 'Lalezar', cursive; font-size: 2.8rem; color: #ffffff; margin-bottom: 10px; font-weight: normal;}
.gallery-hero-bg p { font-size: 1.05rem; font-weight: 500; color: #d1fae5; margin-bottom: 30px; }

.slider-container { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; border-radius: 30px; padding: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.slider-track { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.slide { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; padding: 0 5px; }
.slide img { width: 100%; height: 280px; object-fit: contain; border-radius: 20px; border: 3px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.1); backdrop-filter: blur(5px); }
.slider-controls { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
.slider-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); width: 45px; height: 45px; border-radius: 50%; font-size: 1.1rem; color: #fff; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: #fff; color: #064e3b; }

.albums-section { padding: 60px 0 80px; position: relative; z-index: 1; }
.albums-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.album-card { position: relative; height: 280px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; text-decoration: none; transition: 0.4s; border: 3px solid #fff; background-size: cover; background-position: center; }
.album-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0.1) 100%); z-index: 1; transition: 0.4s; }
.album-card:hover { transform: translateY(-10px); border-color: var(--accent); }
.album-content { position: relative; z-index: 2; text-align: center; }
.album-icon { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.2rem; color: #064e3b; z-index: 2; border: 1px solid #fff; }
.album-count { position: absolute; top: 15px; left: 15px; background: #064e3b; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: bold; z-index: 2; }
.album-content h3 { font-family: 'Lalezar', cursive; font-size: 1.7rem; color: #0f172a; font-weight: normal; margin-bottom: 5px; }
.album-content p { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }

.about-hero { padding-top: 130px; margin-bottom: 60px; }
.intro-card { padding: 40px; display: flex; flex-direction: column; gap: 30px; position: relative;}
.top-tag { display: inline-block; background: rgba(255,255,255,0.85); color: var(--accent); padding: 6px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; border: 1px solid #fff; align-self: center; margin-bottom: -15px;}
.intro-title { font-family: 'Lalezar', cursive; font-size: 3.5rem; color: #0f172a; text-align: center; font-weight: normal; margin-bottom: 20px;}
.intro-content { display: flex; gap: 30px; align-items: center; }
.intro-text { flex: 1; font-size: 1.15rem; color: var(--text-muted); line-height: 2.2; text-align: justify; font-weight: 500;}
.intro-avatar { width: 160px; height: 160px; border-radius: 25px; border: 5px solid #fff; object-fit: cover; background: #fff;}
.meta-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 10px; }
.meta-box { background: rgba(255,255,255,0.8); border: 1.5px solid #fff; border-radius: 20px; padding: 15px; text-align: center; }
.meta-label { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 5px; }
.meta-value { font-size: 1.05rem; font-weight: 800; color: #0f172a; }

.biography-section { margin-bottom: 80px; }
.bio-content { padding: 50px; position: relative; }
.records-section { margin-bottom: 80px; }
.records-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.record-card { background: rgba(255,255,255,0.7); border: 1.5px solid #fff; border-radius: 25px; overflow: hidden; backdrop-filter: blur(10px); }
.record-header { background: #b45309; color: #fff; padding: 15px; text-align: center; font-family: 'Lalezar', cursive; font-size: 1.4rem; font-weight: normal;}

.texts-hero { padding: 140px 0 40px; text-align: center; }
.texts-hero h2 { font-family: 'Lalezar', cursive; font-size: 3.2rem; color: #0f172a; margin-bottom: 10px; font-weight: normal;}
.texts-hero p { font-size: 1.15rem; font-weight: 600; color: var(--text-muted); margin-bottom: 30px; }
.btn-submit-memory { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; padding: 12px 30px; border-radius: 30px; font-weight: 800; text-decoration: none; border: none; cursor: pointer; font-size: 1.05rem;}
.btn-submit-memory:hover { background: #92400e; }

.texts-section { padding: 40px 0 80px; }
.texts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.text-card { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: 0.4s; }
.text-thumb { width: 100%; height: 180px; object-fit: cover; border-top-left-radius: 28px; border-top-right-radius: 28px; }
.text-card-body { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.text-badge { background: rgba(180,83,9,0.1); color: var(--accent); padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: bold; }
.text-card h3 { font-family: 'Lalezar', cursive; font-size: 1.45rem; color: #0f172a; font-weight: normal; margin-bottom: 10px; }
.text-snippet { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; line-height: 1.7; }
.btn-read-more { background: none; border: none; color: var(--accent); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; margin-top: 15px; }

.memory-form-section { padding: 60px 0 100px; }
.form-box { max-width: 800px; margin: 0 auto; padding: 50px; }
.form-title { font-family: 'Lalezar', cursive; font-size: 2.5rem; color: #0f172a; text-align: center; margin-bottom: 10px; font-weight: normal;}
.form-desc { text-align: center; color: var(--text-muted); font-weight: 600; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-group label { font-size: 0.95rem; font-weight: bold; color: #0f172a; }
.form-control { width: 100%; padding: 14px 20px; border-radius: 15px; border: 1.5px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.6); font-family: 'Vazirmatn', sans-serif; font-size: 1rem; color: #1e293b; outline: none; }
textarea.form-control { resize: vertical; min-height: 140px; }
input[type="file"].form-control { padding: 10px; background: rgba(255,255,255,0.8); cursor: pointer; }

.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(15px); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; padding: 20px;}
.modal.active { opacity: 1; pointer-events: auto; }
.modal-card { background: rgba(255, 255, 255, 0.95); width: 100%; max-width: 750px; max-height: 85vh; border-radius: 30px; padding: 40px; overflow-y: auto; position: relative; border: 2px solid #fff;}
.modal-close { position: absolute; top: 20px; left: 25px; background: none; border: none; font-size: 2rem; color: #64748b; cursor: pointer; }
.modal-thumb { width: 100%; height: 260px; object-fit: cover; border-radius: 20px; margin-bottom: 20px; }
.modal-title { font-family: 'Lalezar', cursive; font-size: 2.2rem; color: #0f172a; margin-bottom: 15px; }
.modal-body { font-size: 1.1rem; color: #334155; line-height: 2.2; text-align: justify; }

.salavat-box { max-width: 600px; margin: 50px auto; padding: 40px; text-align: center; }
.salavat-counter { font-family: 'Lalezar', cursive; font-size: 4rem; color: var(--accent); margin: 20px 0; }

/* Lightbox Navigation Buttons */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); width: 55px; height: 55px; border-radius: 50%; font-size: 1.3rem; color: #fff; cursor: pointer; transition: 0.3s; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: #fff; color: #0f172a; }
.lightbox-nav.prev { right: 40px; }
.lightbox-nav.next { left: 40px; }
@media (max-width: 768px) { .lightbox-nav.prev { right: 10px; } .lightbox-nav.next { left: 10px; } }

/* موزیک پلیر اصلاح شده کاملاً راست چین (LTR داخلی) */
.music-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: rgba(255,255,255,0.85); border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #b45309; box-shadow: 0 10px 25px rgba(0,0,0,0.15); cursor: pointer; z-index: 9999; transition: 0.3s; backdrop-filter: blur(10px); }
.music-fab:hover { transform: scale(1.1); background: #fff; }
.music-player-popup { position: fixed; bottom: 100px; right: 30px; width: 320px; padding: 25px; border-radius: 25px; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 9998; background: rgba(248, 250, 252, 0.85); border: 1.5px solid #fff; }
.music-player-popup.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.player-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 10px; }
.player-title { font-size: 0.9rem; font-weight: bold; color: var(--text-muted); }
.close-player { background: none; border: none; font-size: 1.5rem; color: #64748b; cursor: pointer; }
.track-info { text-align: center; margin-bottom: 25px; }
.track-info h4 { font-family: 'Lalezar', cursive; font-size: 1.5rem; color: #0f172a; font-weight: normal; margin-bottom: 5px; }
.track-info p { font-size: 0.9rem; color: var(--accent); font-weight: bold; }

/* نوار پروگرس اکیداً LTR تا کلیک و پر شدن از چپ به راست باشد */
.progress-container { width: 100%; height: 6px; background: rgba(0,0,0,0.1); border-radius: 10px; cursor: pointer; margin-bottom: 10px; position: relative; direction: ltr; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 10px; width: 0%; transition: width 0.1s linear; position: absolute; left: 0; top: 0; }
.progress-bar::after { content: ''; position: absolute; right: -5px; top: -4px; width: 14px; height: 14px; background: #fff; border: 2px solid var(--accent); border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.time-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: #64748b; font-weight: bold; margin-bottom: 20px; direction: ltr; }

/* کنترل ها اکیداً LTR */
.player-controls { display: flex; justify-content: center; align-items: center; gap: 20px; direction: ltr; }
.player-controls button { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: 0.3s; }
.player-controls button:hover { color: var(--accent); }
.player-controls .play-btn { width: 55px; height: 55px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(180,83,9,0.3); font-size: 1.3rem; }
.player-controls .play-btn:hover { background: #92400e; transform: scale(1.05); color: #fff; }

/* لیست پخش و اکولایزر */
.playlist-container { max-height: 140px; overflow-y: auto; margin-top: 20px; text-align: right; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 10px; direction: rtl; }
.playlist-container::-webkit-scrollbar { width: 5px; }
.playlist-container::-webkit-scrollbar-thumb { background: rgba(180,83,9,0.3); border-radius: 5px; }
.playlist-item { padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: 0.3s; font-size: 0.9rem; color: #334155; display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-weight: 500;}
.playlist-item:hover { background: rgba(180,83,9,0.1); }
.playlist-item.active { background: rgba(180,83,9,0.15); color: var(--accent); font-weight: bold; }

.equalizer { display: none; align-items: flex-end; gap: 3px; height: 15px; direction: ltr; }
.playlist-item.active .equalizer { display: flex; }
.equalizer.paused .eq-bar { animation-play-state: paused; }
.eq-bar { width: 3px; background: var(--accent); animation: eq-bounce 0.5s infinite alternate; border-radius: 2px; }
.eq-bar:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 15px; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }
@keyframes eq-bounce { 0% { height: 4px; } 100% { height: 15px; } }

/* -------------------------------------- */
/* وصیت نامه (Quotes) پاپ آپ */
/* -------------------------------------- */
.quote-modal-card { padding: 50px 40px 40px !important; border-right: 5px solid var(--accent) !important; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 25px !important;}
.quote-modal-card .quote-icon { font-size: 3.5rem; color: rgba(180,83,9,0.15); position: absolute; top: 15px; right: 30px; z-index: 0; }
.quote-modal-card .quote-text { font-size: 1.3rem; font-weight: 800; color: #0f172a; line-height: 2.2; position: relative; z-index: 1; font-family: 'Lalezar', cursive; font-weight: normal; text-align: justify; text-align-last: center;}
.quote-modal-card .quote-author { margin-top: 25px; font-weight: bold; color: var(--accent); font-size: 1rem; background: rgba(180,83,9,0.1); padding: 6px 20px; border-radius: 20px; z-index: 1;}

/* -------------------------------------- */
/* تایم لاین (Timeline) RTL */
/* -------------------------------------- */
.timeline-section-wrapper { padding: 40px 0 80px; position: relative; }
.timeline-section { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline-section::after { content: ''; position: absolute; width: 4px; background: rgba(180,83,9,0.3); top: 0; bottom: 0; right: 50%; margin-right: -2px; border-radius: 2px; }
.timeline-item { padding: 20px 0; position: relative; width: 50%; box-sizing: border-box; }
/* Box right side (Odd) */
.timeline-item:nth-child(odd) { right: 0; padding-left: 40px; padding-right: 0; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot { left: -10px; right: auto; }
/* Box left side (Even) */
.timeline-item:nth-child(even) { right: 50%; padding-right: 40px; padding-left: 0; text-align: right; }
.timeline-item:nth-child(even) .timeline-dot { right: -10px; left: auto; }

.timeline-dot { position: absolute; width: 20px; height: 20px; background: var(--accent); border: 4px solid #fff; border-radius: 50%; top: 40px; z-index: 1; box-shadow: 0 0 10px rgba(0,0,0,0.2); }
.timeline-content { padding: 25px; border-radius: 25px; border: 2px solid #fff; transition: 0.3s; }
.timeline-content:hover { transform: translateY(-5px); border-color: var(--accent); }
.timeline-date { display: inline-block; padding: 5px 15px; background: var(--accent); color: #fff; border-radius: 15px; font-weight: bold; margin-bottom: 15px; font-size: 0.95rem; }
.timeline-title { font-family: 'Lalezar', cursive; font-size: 1.6rem; color: #0f172a; margin-bottom: 10px; font-weight: normal;}
.timeline-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 2; text-align: justify;}

@media screen and (max-width: 768px) {
    .timeline-section::after { right: 31px; }
    .timeline-item { width: 100%; padding-right: 70px !important; padding-left: 20px !important; right: 0 !important; }
    .timeline-item .timeline-dot { right: 21px !important; left: auto !important; }
}

/* SVG sizing for social buttons */
.social-btn svg { width: 1.6rem !important; height: 1.6rem !important; fill: currentColor !important; }
