@font-face{
  font-family: 'IranYekan';
  src: url('/static/fonts/Yekan.woff') format('woff'),
       url('/static/fonts/Yekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


*{
    margin: 0;
    padding: 0;     
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root{
    --color-primary: #eeeeee;
    --color-secondary: #787a91; 
    --color-dark: #0F044C;
    --color-orange: #FF6F00;
    --color-blue: #141E61;
    --color-text: #000000;
    --color-white: #ffffff;

    --font-size-title: 2.2rem;
    --font-size-subtitle: 1.2rem;
    --font-size-btn: 1rem;
    --font-size-small: 0.8rem;
    --font-weight-bold: 700;
    --font-weight-normal: 400;

    --border-radius: 20px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body{
    min-height: 100vh;
    font-family: 'IranYekan', sans-serif;
}

/* all sections css :> */
section {
  padding: 20vh 10%;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  background-color: var(--color-primary);
}

/* all btns css :> */
.btn {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--color-orange);
    background-color: transparent;
    color: var(--color-orange);
    min-width: 160px;
    text-align: center;
    transition: 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(218, 100, 4, 0.315), transparent);
    transition: left .7s;
    transform: skewX(-20deg);
}

.btn:hover::after {
    left: 150%;
}

/* all titles css :> */
.section-title {
  font-size: var(--font-size-title);
  color: var(--color-dark);
  font-weight: var(--font-weight-normal);
}

.section-title span{
    color: var(--color-orange);
}

.underline-animate {
  position: relative;
  display: inline-block;
  font-size: var(--font-size-title);
  color: var(--color-dark);
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.5s ease;
}

.underline-animate::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.5s ease;
}

.underline-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.underline-animate.visible::after {
  transform: scaleX(1);
}



/* navbar :> */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.header::after{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #eeeeee3f, transparent);
    transition: 1s;
}

.header:hover::after{
    left: 100%;
}

.navbar a{
    font-size: 1.1rem;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: var(--font-weight-normal);
    margin-left: 2.5rem;
    transition: .5s ease;
}

.navbar a:hover{
    color: var(--color-white);
}

.logo{
    margin-top: 10px;
}

#check{
    display: none;
}

.icons{
    position: absolute;
    right: 5%;
    font-size: var(--font-size-title);
    color: var(--color-white);
    cursor: pointer;
    display: none;
}

/* event-section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin: 2.2rem;
  flex-wrap: wrap;
}


.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.event-card {
  position: relative;
  overflow: hidden;
  width: 330px;
  height: 350px;
  background: var(--color-primary);
  border-radius: 16px;
  box-shadow: 0 0 12px #0000009f;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 100, 4, 0.151), transparent);
    transition: left .5s;
    transform: skewX(-20deg);
}

.event-card:hover::after {
    left: 150%;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-logo-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
}

.event-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  background: white;
}

.event-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid transparent;
  z-index: 1;
  animation: spin 4s linear infinite;
}

.spinner.orange {
  border-right: 4px solid var(--color-orange);
}

.spinner.navy {
  border-left: 4px solid #162938;
  animation-direction: reverse;
  animation-duration: 6s;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.event-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: var(--color-dark);
}

.event-meta {
  font-size: 0.9rem;
  color: var(--color-blue);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-back h3{
  color: var(--color-dark);
}

.flip-card-back h3 span{
  color: var(--color-orange);
}

.flip-card-back p{
  color: var(--color-secondary);
}

.flip-back-btn{
  margin: 20px auto;
}

/* event-section-end */

/* footer-section */
.footer {
  position: relative;
  z-index: 100;
  overflow: hidden;
  text-align: center;
  padding: 1vh 10%;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
  background-color: var(--color-primary);
}


.footer::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, #eeeeee1e, transparent);
  animation: slideLight 2s linear infinite;
  z-index: -1;
}

@keyframes slideLight {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}


.footer-overlay {
  padding: 50px 30px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer-col h3 {
  margin-bottom: 15px;
  font-size: var(--font-size-subtitle);
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 5px;
}

.footer-col span {
  color: var(--color-orange);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin: 8px 0;
}

.footer-col a {
  color: var(--color-dark);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col p{
  color: var(--color-dark);
}

.footer-btn{
  width: 100px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 4px;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid var(--color-secondary);
  margin-top: 15px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-small);
  flex-wrap: wrap;
  color: var(--color-blue);
}

/* footer-section-end */


/* breakpoints */
@media (max-width: 992px) {
    .header{
        padding: 1.3rem 5%;
    }
}

@media (max-width: 768px) {
    .icons{
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon{
        display: none;
    }

    .icons #close-icon{
        display: none;
    }

    #check:checked~.icons #close-icon{
        display: block;
    }
    
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(50px);
        box-shadow: #0F044C;
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar{
        height: 20rem;
    }

    .navbar a{
        display: block;
        font-size: 1rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translateY(-10px);
        opacity: 0;
        transition: .3s ease;
    }

    #check:checked~.navbar a{
        transform: translateY(-0);
        opacity: 1;
        transition-delay: calc(.15s * var(--i));
    }

    .hero-content h1,
    .hero-content .home-text h2,
    .hero-content .home-text h2 span {
        font-size: var(--font-size-subtitle);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .event-card {
    flex: 0 0 100%;
    }

    .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    }

  .footer-bottom{
    display: block;
    text-align: center;
  }

  .scrolldown {
    display: none;
  }

  .home{
    min-height: auto;
    padding: 20vh;
  }

}


.event-filter-section {
  padding: 2rem;
  direction: rtl;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.filter-input {
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
  background: transparent;
  outline: none;
  font-family: inherit;
  color: var(--color-dark);
  min-width: 200px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-input:focus {
  border-bottom-color: var(--color-orange);
  box-shadow: 0 10px 10px #ff6f0091;
}

.filter-form button{
    margin: auto 0;
}


.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.filter-input {
  flex: 1 1 200px;
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid var(--color-secondary);
  background: transparent;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-input:focus {
  border-bottom-color: var(--color-orange);
  box-shadow: 0 10px 10px #ff6f0091;
}

.search-btn {
  width: 120px;
  margin-top: 1rem;
}

