@font-face {
  font-family:IRANYekan;
  src:url(/web/20221120040736im_/http://ahmadmahmoudi.ir/assets/css/fonts/iryekan300.eot);
  src:url(/web/20221120040736im_/http://ahmadmahmoudi.ir/assets/css/fonts/iryekan300.eot#iefix) format("embedded-opentype"),
      url(/web/20221120040736im_/http://ahmadmahmoudi.ir/assets/css/fonts/iryekan300.woff2) format("woff2"),
      url(/web/20221120040736im_/http://ahmadmahmoudi.ir/assets/css/fonts/iryekan300.woff) format("woff"),
      url(/web/20221120040736im_/http://ahmadmahmoudi.ir/assets/css/fonts/iryekan300.ttf) format("truetype");
  font-weight:300;
  font-style:normal;
}
@font-face {
  font-family:IRANYekan;
  src:url(fonts/iryekan400.eot);
  src:url(fonts/iryekan400.eot#iefix) format("embedded-opentype"),
      url(fonts/iryekan400.woff2) format("woff2"),
      url(fonts/iryekan400.woff) format("woff"),
      url(fonts/iryekan400.ttf) format("truetype");
  font-weight:400;
  font-style:normal;
}
@font-face {
  font-family:IRANYekan;
  src:url(fonts/iryekan700.eot);
  src:url(fonts/iryekan700.eot#iefix) format("embedded-opentype"),
      url(fonts/iryekan700.woff2) format("woff2"),
      url(fonts/iryekan700.woff) format("woff"),
      url(fonts/iryekan700.ttf) format("truetype");
  font-weight:700;
  font-style:normal;
}
@font-face {
  font-family:IRANSans;
  src:url(fonts/a83daff6.ttf) format("truetype");
  font-weight:300;
  font-style:normal;
}

/* ===============================
   FESTIVAL LANDING PAGE
================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"IRANYekan","IRANSans",Tahoma,sans-serif;
    direction:rtl;
    min-height:100vh;
    background:url("bg1.png") center center / cover fixed no-repeat;
    color:#111827;
    line-height:1.9;
}

/* متن‌های عمومی: خواناتر */
p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #475569; /* خاکستری تیره که چشم را خسته نمی‌کند */
    text-align: justify; /* متن‌های فارسی در حالت توجیه شده رسمی‌ترند */
}
/* لینک اگر جایی داشته باشی */
a{
    color:#2563eb;
    text-decoration:none;
}
a:hover{
    text-decoration:underline;
}

img, video, iframe{
    display:block;
    max-width:100%;
}

/* ===== TITLES & HEADINGS ===== */

h1, h2, h3 {
    font-weight: 700;
    color: #0f172a; /* رنگ سرمه‌ای خیلی تیره و رسمی */
    letter-spacing: -0.01em;
}

h1 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* افکت گرادینت ملایم روی تیتر اصلی */
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* اضافه کردن یک خط ظریف کنار تیترهای بخش‌ها برای رسمی‌تر شدن */
h2::before {
    content: "";
    width: 4px;
    height: 24px;
    background: #2563eb;
    border-radius: 10px;
    display: inline-block;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1e293b;
}

/* زیر تیترها */
.subtitle{
    font-size:0.9rem;
    color:#6b7280;
}

/* ================= HEADER ================= */

header{
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.80);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 4px 18px rgba(15,23,42,0.07);
}

.header-inner{
    max-width:1180px;
    margin:0 auto;
    padding:14px 18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.logo-title h1{
    font-size:1.35rem;
}

.logo-title span{
    display:block;
    margin-top:4px;
    font-size:.9rem;
    color:#4b5563;
}

.header-badges{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-start;
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 11px;
    border-radius:999px;
    background:rgba(255,255,255,0.82);
    border:1px solid rgba(15,23,42,0.06);
    color:#374151;
    font-size:.82rem;
    box-shadow:0 2px 10px rgba(15,23,42,0.05);
}

.badge-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#2563eb;
}

/* ================= WRAPPER ================= */

.page-wrapper{
    max-width:1180px;
    margin:0 auto;
    padding:24px 18px 40px;
}

/* ================= GRID LAYOUT ================= */

.top-row {
    display: grid;
    grid-template-columns: minmax(0, 0.33fr) minmax(300px, 0.65fr);
    gap: 30px;
    align-items: start;
}

.highlights{
    margin:24px 0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.bottom-row{
    display:grid;
    grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr);
    gap:24px;
    align-items:start;
}

/* ================= UNIFIED CARD STYLE ================= */

.glass-box,
.profile-card,
.jury-box,
.section-box,
.highlight-card,
.video-item{
    background:rgba(255,255,255,0.86);
    border:1px solid rgba(148,163,184,0.30);
    border-radius:18px;
    box-shadow:0 12px 30px rgba(15,23,42,0.12);
    backdrop-filter: blur(9px);
}

/* کارت‌ها */
.profile-card,
.jury-box,
.section-box,
.highlight-card{
    padding:20px 22px;
}

/* ================= PROFILE CARD (FIXED & CLEAN) ================= */

.profile-card{
    width:100%;
    max-width:340px;           /* کوچکتر و جمع‌وجور */
    padding:20px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* هدر پروفایل */
.profile-header{
    display:flex;
    align-items:center;
    gap:14px;
}

/* فقط یک استایل تصویر — بدون تداخل */
.profile-img{
    width:58px;
    height:58px;
    border-radius:14px;
    object-fit:cover;
    border:1px solid rgba(148,163,184,0.4);
}

/* اطلاعات نام */
.profile-info{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.profile-info h2{
    font-size:0.98rem;
    font-weight:700;
    color:#111827;
    margin:0;
}

.profile-info span{
    font-size:0.82rem;
    color:#6b7280;
}

/* متای زیر اسم */
.profile-meta {
    font-size: 0.77rem;
    color: #6b7280;
    line-height: 1.6;
}

/* متن توضیح */
.profile-body{
    font-size:0.9rem;
    color:#374151;
    line-height:1.85;
}

/* تگ پایین */
.profile-tagline{
    padding:8px 10px;
    border-radius:12px;
    background:#f1f5f9;
    font-size:0.83rem;
    color:#334155;
    border:1px solid rgba(148,163,184,0.3);
}


.jury-box{
    padding:22px 24px;
}

.jury-title{
    font-size:1.2rem;
    margin-bottom:4px;
}

.jury-sub{
    font-size:.9rem;
    color:#6b7280;
    margin-bottom:12px;
}

.jury-text{
    font-size:0.95rem;
    color:#374151;
}

.jury-text br{
    line-height:2;
}

.chips-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:16px;
}

.chip{
    padding:7px 12px;
    border-radius:999px;
    background:#eef2ff;
    color:#3730a3;
    font-size:.8rem;
    border:1px solid rgba(99,102,241,0.16);
}

/* ================= HIGHLIGHTS ================= */

.highlight-card{
    min-height:150px;
}

.highlight-title{
    font-size:0.97rem;
    font-weight:700;
    margin-bottom:6px;
    color:#111827;
}

.highlight-text{
    color:#4b5563;
    font-size:.9rem;
}

/* ================= GALLERY ================= */

.section-header{
    margin-bottom:12px;
}

.section-header h3{
    font-size:1.05rem;
    margin-bottom:4px;
}

.section-header span{
    font-size:.85rem;
    color:#6b7280;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
    gap:12px;
}

.gallery-grid img{
    width:100%;
    aspect-ratio:1 / 1;
    object-fit:cover;
    border-radius:14px;
    border:1px solid rgba(148,163,184,0.55);
    box-shadow:0 6px 18px rgba(15,23,42,0.10);
}

/* ================= VIDEO ================= */

.video-item{
    overflow:hidden;
    margin-bottom:14px;
}

.video-item video{
    width:100%;
    display:block;
    background:#000;
}

.video-caption{
    padding:10px 12px;
    color:#4b5563;
    font-size:.88rem;
    border-top:1px solid rgba(148,163,184,0.45);
    background:rgba(255,255,255,0.82);
}

/* ================= FOOTER ================= */

footer{
    margin-top:26px;
    font-size:0.82rem;
    color:#6b7280;
    text-align:center;
    background:rgba(255,255,255,0.8);
    border-radius:16px;
    padding:10px 14px;
    border:1px solid rgba(148,163,184,0.35);
    backdrop-filter:blur(8px);
}


/* ================= GALLERY SLIDER (lightbox style) ================= */

.gallery-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 16px 40px rgba(15,23,42,0.14);
  backdrop-filter: blur(8px);
}

/* اسلایدها */
.gallery-track{
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.gallery-slide{
  min-width: 100%;
  position: relative;
}

.gallery-slide img{
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
}

/* نوار پایین (اختیاری) */
.gallery-caption{
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 12px;
    padding: 4px 7px;
    border-radius: 12px;
    background: rgb(72 72 72 / 82%);
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.6;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.26);
}

/* فلش‌ها */
.gallery-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.82);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(15,23,42,0.18);
  backdrop-filter: blur(8px);
  z-index: 5;
  transition: transform 0.2s ease, background 0.2s ease;
}
.gallery-nav:hover{
  transform: translateY(-50%) scale(1.05);
  background: rgba(255,255,255,0.95);
}

.gallery-prev{ left: 14px; }
.gallery-next{ right: 14px; }

/* اگر می‌خواهی روی موبایل ساده‌تر شود */
@media (max-width: 700px){
  .gallery-slide img{ height: 52vh; }
  .gallery-prev{ left: 8px; }
  .gallery-next{ right: 8px; }
  .gallery-nav{ width: 40px; height: 40px; }
}

/* ================= Lightbox overlay ================= */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55); /* پس زمینه تیره ولی نه خیلی */
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}

.lightbox-overlay.show{
  display: flex;
}

.lightbox-box{
  width: min(1100px, 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.78); /* lightbox باکس روشن */
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

.lightbox-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148,163,184,0.30);
}

.lightbox-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.88);
  cursor:pointer;
}

.lightbox-close:hover{ background: rgba(255,255,255,1); }

.lightbox-body{
  position: relative;
}

.lightbox-body img{
  width: 100%;
  height: min(70vh, 680px);
  object-fit: cover;
  display:block;
}

.lightbox-hint{
  padding: 10px 12px;
  color: #475569;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.62);
}
/* ================= FULL WIDTH 3-UP GALLERY ================= */

.fullwidth-gallery{
    width: 100%;
    margin-top: 36px;
}

.fullwidth-gallery .section-header{
    margin-bottom: 18px;
}

/* خود اسلایدر */
.gallery-slider{
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(148,163,184,0.28);
    box-shadow: 0 16px 40px rgba(15,23,42,0.10);
}

.gallery-track{
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

/* هر اسلاید = یک صفحه که داخلش 3 عکس است */
.gallery-page{
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 18px;
    box-sizing: border-box;
}

.gallery-item{
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #e2e8f0;
    cursor: pointer;
    min-height: 260px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.gallery-item img{
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img{
    transform: scale(1.04);
    filter: saturate(1.05);
}



/* فلش‌ها */
.gallery-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    box-shadow: 0 10px 28px rgba(15,23,42,0.18);
    cursor: pointer;
    z-index: 5;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.gallery-nav:hover{
    transform: translateY(-50%) scale(1.08);
    background: #ffffff;
}

.gallery-prev{ left: 14px; }
.gallery-next{ right: 14px; }

/* دات‌ها */
.gallery-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 0 16px;
}

.gallery-dot{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148,163,184,0.45);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-dot.active{
    width: 28px;
    background: #2563eb;
}

/* ================= LIGHTBOX ================= */

.lightbox-overlay{
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 24px;
}

.lightbox-overlay.show{
    display: flex;
}

.lightbox-box{
    position: relative;
    width: min(1200px, 96vw);
}

.lightbox-box img{
    width: 100%;
    max-height: 84vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: #0f172a;
    box-shadow: 0 30px 90px rgba(0,0,0,0.38);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next{
    position: absolute;
    border: none;
    cursor: pointer;
    z-index: 10;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.lightbox-close{
    top: 9px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.lightbox-prev,
.lightbox-next{
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.lightbox-prev{ left: 14px; }
.lightbox-next{ right: 14px; }

.lightbox-text{
    margin-top: 12px;
    color: #e2e8f0;
    text-align: center;
    font-size: 0.95rem;
}

/* ریسپانسیو */
@media (max-width: 980px){
    .gallery-page{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px){
    .gallery-page{
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item img{
        min-height: 220px;
        max-height: 260px;
    }

    .gallery-nav{
        width: 40px;
        height: 40px;
    }
}






/* ================= RESPONSIVE ================= */

@media (max-width: 1100px){
    .top-row,
    .bottom-row{
        grid-template-columns:1fr;
    }

    .highlights{
        grid-template-columns:1fr;
    }

    .profile-card{
        max-width:none;
    }
}

@media (max-width: 700px){
    .header-inner{
        flex-direction:column;
        align-items:flex-start;
    }

    .logo-title h1{
        font-size:1.15rem;
    }

    .profile-header{
        align-items:flex-start;
    }

    .page-wrapper{
        padding:18px 14px 28px;
    }
}
.button-info a {
    display: flex;
    justify-content: center;
    background: #524db1;
    border-radius: 6px;
    color: #fff;
    padding: 5px;
    margin: 10px 0 0 0;
}
.button-info a:hover {
        background: #0f319f;
    border-radius: 6px;
    color: #ffffff;
    padding: 5px;
    margin: 10px 0 0 0;
    text-decoration: unset;
}
