
/* aaaaaaaaaIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII */
@media (max-width:400px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

.search-btn img{
width: 15px;
margin-left: -12px;
height: 15px;
}

.alarm-dot {
  position: absolute;
  top: 8px;      /* adjust for your layout */
  right: -20px;
  width: 15px;
  height: 15px;
  background-color: rgb(238, 40, 40);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
   cursor: pointer; 
}
@keyframes bigPulse {
  0% {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  100% {
    width: 60px;   /* bigger ripple */
    height: 60px;
    opacity: 0;
  }
}
.alarm-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 0, 0, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bigPulse .8s ease-out infinite;
}



.alarm-dot::before {
  content: attr(data-tooltip); /* Use the text from data-tooltip */
  position: absolute;
  bottom: 100%; /* Position above the dot */
  left: 60px;
  transform: translateX(-50%);
  margin-bottom: -50px; /* Space between dot and tooltip */
  white-space: nowrap; /* Prevent text wrapping */
  padding: 5px 10px;
  background: #333; /* Dark background for tooltip */
  color: #fff; /* White text */
  border-radius: 5px;
  font-size: 12px;
  font-family:"peyda"
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3; /* Make sure it's above other elements */
}

/* Show tooltip on hover/focus */
.alarm-dot:hover::before,
.alarm-dot:focus::before {
  opacity: 1;
  visibility: visible;
}

/* For touch devices (simulating hover with :active) */
.alarm-dot:active::before {
  opacity: 1;
  visibility: visible;
}
  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

.nav-btn {
    margin-top: -3px;
    font-size: 0.6rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
    display:none
  }

  .header-logo {
    width: 45px;
    margin-top: -2px;
    margin-right: -15px;
  }
  .bia {
    height: 30px;
    clip-path: inset(0 100% 0 0);
    animation: revealMask 10s ease forwards;
    margin-right: -10px;
 
  }}


@media (min-width: 768px) {
  .episode-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ cards on larger screens */
  }
}
@media (max-width: 400px) {
.episodes-header img {
  max-width: 50%;
  height: auto;
}

.episode-card h2 {
  font-size: .5rem;
    font-family: "abare22";
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.episode-text {
  color: #f0f0f0;
  position: relative;
  padding: 0.4rem 0;
}

.episode-text h2 {
  color: #f0f0f0;
  font-size: .8rem;
  margin: 0;
}

.episode-text {
  position: relative;
  padding: 0.4rem 0;
  color: #f0f0f0;
}

.episode-text h2 {
  font-size: .8rem;
  margin: 0;
  color: #f0f0f0;
}

.short-desc,
.full-desc {
  margin: 0.35rem 0;
  color: #f0f0f0;
  line-height: 1.4;
  
  transition: opacity 0.5s ease;
}


.short-desc {
  color: #f0f0f0;
  opacity: 1;
    font-family: "abare22";
  font-weight: 500;
  font-size: .7rem;
}

.full-desc {
    font-family: "abare22";
  font-weight: 400;
  color: #f0f0f0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: none;
}

.episode-cover-placeholder {
  width: 100%;
  height: 200;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  margin-top: -.2rem;

  border: 2px solid #d66406;
  position: relative;
  overflow: hidden;
}
.episode-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.episode-card {
  position: relative;
  background: rgba(34, 34, 34, 0.55); /* translucent dark */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: .8rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;

  border: 1px solid rgba(255, 255, 255, 0.08);


  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);

  transition: 
    transform 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    border 0.35s ease;
}
}











@media (max-width:400px)  {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row; /* Display columns horizontally */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 20px; /* Reduce gap between columns */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }

.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  background: rgba(34, 34, 34, 0.55); /* This is the nav bar color */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Style for the container of the home button */
.home-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; /* Position relative to the nav bar */
  bottom: 40px; /* Adjust this value to position it above the nav bar */
  left: 48%;
  margin-left: 20px;
  transform: translateX(-50%); /* Center the button horizontally */
  z-index: 1001; /* Ensure it's above the nav bar */
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px; /* Increased width */
  height: 60px; /* Increased height */
  background-color: rgba(24, 23, 23, 0.87); /* Same color as nav bar, or a specific color */
  border-radius: 50%; /* Makes it a circle */
  margin-bottom: 10px; /* Adjust space above the nav bar */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Optional: Add a subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}



.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%
  );
  opacity: 1.6;
  pointer-events: none;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(37, 37, 37, 0.06);
}

.mobile-nav .nav-button {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  font-size: 10px;
  font-family: "abare22";
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  transition: color 0.3s ease;
}
.mobile-nav .nav-button:hover {
  color: #ff9900;
}

.mobile-nav .nav-button img {
  margin-bottom: 5px; /* Space between icon and text */
}

/* Adjustments for the home button image specifically */
.home-button-container .nav-button img {
  width: 35px; /* Original width */
  height: 35px; /* Original height */
  margin-right: 6px; /* Remove margin-right as it's centered */
  margin-top: 6px;
 
}

.reasoc {
  width: 20px;
  height: 20px;
}
/* Removed .homeback style as it's now handled by .home-button-container .nav-button img */
.conbut {
  width: 20px;
  height: 20px;
}
.abous {
  width: 20px;
  height: 20px;
}
.epios {
  width: 20px;
  height: 20px;
}

.nav-button[href="eps.html"] {
  margin-left: -35px; 
}
.nav-button[href="aboutus.html"] {
  margin-right: -25px; 
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  background-color: rgba(34, 34, 34, 0.55);
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
  cursor: pointer;
}


.home-button-container .nav-button img {
  width: 40px; /* Original size */
  height: 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition for the image's transform */
  transform-origin: center; /* Ensure zoom happens from the center */
}


  .home-button-container .nav-button:active {
    transform: scale(1.1); 
  }

  .home-button-container .nav-button:active img {
    transform: scale(1.08); /* Zoom the image */
  }




}

/* iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii */
@media (max-width: 480px) and (min-width:400px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 0.7rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }
  .search-btn img {
    width: 25px;
    margin-left: -12px;
    height: 25px;
  }

.alarm-dot {
  position: absolute;
  top: 12px;      /* adjust for your layout */
  right: -20px;
  width: 15px;
  height: 15px;
  background-color: rgb(238, 40, 40);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
   cursor: pointer; 
}
@keyframes bigPulse {
  0% {
    width: 30px;
    height: 30px;
    opacity: 0.7;
  }
  100% {
    width: 60px;   /* bigger ripple */
    height: 60px;
    opacity: 0;
  }
}
.alarm-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 0, 0, 0.86);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: bigPulse .8s ease-out infinite;
}



.alarm-dot::before {
  content: attr(data-tooltip); /* Use the text from data-tooltip */
  position: absolute;
  bottom: 100%; /* Position above the dot */
  left: 50px;
  transform: translateX(-50%);
  margin-bottom: -50px; /* Space between dot and tooltip */
  white-space: nowrap; /* Prevent text wrapping */
  padding: 5px 10px;
  background: #333; /* Dark background for tooltip */
  color: #fff; /* White text */
  border-radius: 5px;
  font-size: 12px;
  font-family:"peyda"
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3; /* Make sure it's above other elements */
}

/* Show tooltip on hover/focus */
.alarm-dot:hover::before,
.alarm-dot:focus::before {
  opacity: 1;
  visibility: visible;
}

/* For touch devices (simulating hover with :active) */
.alarm-dot:active::before {
  opacity: 1;
  visibility: visible;
}
 .nav-btn {
    font-size: 0.7rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
display:none
  }

  .header-logo {
    margin-right: -13px;
    width: 45px;
    margin-top: -2px;
  }


  .bia {
    height: 35px;
    clip-path: inset(0 100% 0 0);
    animation: revealMask 2s ease forwards;
    margin-right: -10px;
/* display:none */
  }}

@media (min-width: 768px) {
  .episode-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ cards on larger screens */
  }
}
@media (max-width: 480px) and (min-width:400px) {
.episodes-header img {
  max-width: 50%;
  height: auto;
}

.episode-card h2 {
  font-size: .5rem;
    font-family: "abare22";
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.episode-text {
  color: #f0f0f0;
  position: relative;
  padding: 0.4rem 0;
}

.episode-text h2 {
  color: #f0f0f0;
  font-size: .8rem;
  margin: 0;
}

.episode-text {
  position: relative;
  padding: 0.4rem 0;
  color: #f0f0f0;
}

.episode-text h2 {
  font-size: .8rem;
  margin: 0;
  color: #f0f0f0;
}

.short-desc,
.full-desc {
  margin: 0.35rem 0;
  color: #f0f0f0;
  line-height: 1.4;
  
  transition: opacity 0.5s ease;
}


.short-desc {
  color: #f0f0f0;
  opacity: 1;
    font-family: "abare22";
  font-weight: 500;
  font-size: .7rem;
}

.full-desc {
    font-family: "abare22";
  font-weight: 400;
  color: #f0f0f0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: none;
}

.episode-cover-placeholder {
  width: 100%;
  height: 200;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  margin-top: -.2rem;

  border: 2px solid #d66406;
  position: relative;
  overflow: hidden;
}
.episode-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.episode-card {
  position: relative;
  background: rgba(34, 34, 34, 0.55); /* translucent dark */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: .8rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;

  border: 1px solid rgba(255, 255, 255, 0.08);


  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);

  transition: 
    transform 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    border 0.35s ease;
}
}














@media (max-width: 480px) and (min-width:400px)  {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row; /* Display columns horizontally */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 55px; /* Reduce gap between columns */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }

.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  background: rgba(34, 34, 34, 0.55); /* This is the nav bar color */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Style for the container of the home button */
.home-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; /* Position relative to the nav bar */
  bottom: 40px; /* Adjust this value to position it above the nav bar */
  left: 50%;
  margin-left: 20px;
  transform: translateX(-50%); /* Center the button horizontally */
  z-index: 1001; /* Ensure it's above the nav bar */
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px; /* Increased width */
  height: 60px; /* Increased height */
  background-color: rgba(24, 23, 23, 0.87); /* Same color as nav bar, or a specific color */
  border-radius: 50%; /* Makes it a circle */
  margin-bottom: 10px; /* Adjust space above the nav bar */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Optional: Add a subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}



.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.02) 40%,
    transparent 60%
  );
  opacity: 1.6;
  pointer-events: none;
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(37, 37, 37, 0.06);
}

.mobile-nav .nav-button {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  font-size: 12px;
  font-family: "abare22";
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  transition: color 0.3s ease;
}
.mobile-nav .nav-button:hover {
  color: #ff9900;
}

.mobile-nav .nav-button img {
  margin-bottom: 5px; /* Space between icon and text */
}

/* Adjustments for the home button image specifically */
.home-button-container .nav-button img {
  width: 45px; /* Original width */
  height: 45px; /* Original height */
  margin-right: 6px; /* Remove margin-right as it's centered */
  margin-top: 6px;
 
}

.reasoc {
  width: 20px;
  height: 20px;
}
/* Removed .homeback style as it's now handled by .home-button-container .nav-button img */
.conbut {
  width: 20px;
  height: 20px;
}
.abous {
  width: 20px;
  height: 20px;
}
.epios {
  width: 20px;
  height: 20px;
}
.nav-button[href="eps.html"] {
  margin-left: -55px; 
}
.nav-button[href="aboutus.html"] {
  margin-right: -45px; 
}
.nav-button[href="soc.html"]{
  margin-left: -20px;
}
.nav-button[href="conus.html"]{
  margin-right: -20px;
}


.home-button-container .nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 65px;
  height: 65px;
  background-color: rgba(34, 34, 34, 0.55);
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
  cursor: pointer;
}


.home-button-container .nav-button img {
  width: 40px; /* Original size */
  height: 40px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transition for the image's transform */
  transform-origin: center; /* Ensure zoom happens from the center */
}


  .home-button-container .nav-button:active {
    transform: scale(1.1); 
  }

  .home-button-container .nav-button:active img {
    transform: scale(1.08); /* Zoom the image */
  }

}


/* iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii */

@media (min-width: 480px) and (max-width:768px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 0.8rem; /* Slightly smaller font size */
    padding: 4px 6px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }

  .header-logo {
    width: 55px;
    margin-top: -2px;
  }
  .bia {
  height: 25px;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 10s ease forwards;
  margin-right:-10px;

}}

@media (min-width: 768px) {
  .episode-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ cards on larger screens */
  }
}
@media (min-width: 480px) and (max-width:768px) {
.episodes-header img {
  max-width: 50%;
  height: auto;
}

.episode-card h2 {
  font-size: .5rem;
    font-family: "abare22";
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.episode-text {
  color: #f0f0f0;
  position: relative;
  padding: 0.4rem 0;
}

.episode-text h2 {
  color: #f0f0f0;
  font-size: .8rem;
  margin: 0;
}

.episode-text {
  position: relative;
  padding: 0.4rem 0;
  color: #f0f0f0;
}

.episode-text h2 {
  font-size: .8rem;
  margin: 0;
  color: #f0f0f0;
}

.short-desc,
.full-desc {
  margin: 0.35rem 0;
  color: #f0f0f0;
  line-height: 1.4;
  
  transition: opacity 0.5s ease;
}


.short-desc {
  color: #f0f0f0;
  opacity: 1;
    font-family: "abare22";
  font-weight: 500;
  font-size: .7rem;
}

.full-desc {
    font-family: "abare22";
  font-weight: 400;
  color: #f0f0f0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: none;
}

.episode-cover-placeholder {
  width: 100%;
  height: 200;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  margin-top: -.2rem;

  border: 2px solid #d66406;
  position: relative;
  overflow: hidden;
}
.episode-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.episode-card {
  position: relative;
  background: rgba(34, 34, 34, 0.55); /* translucent dark */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: .8rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;

  border: 1px solid rgba(255, 255, 255, 0.08);


  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);

  transition: 
    transform 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    border 0.35s ease;
}
}












@media (min-width: 480px) and (max-width:768px)  {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row; /* Display columns horizontally */
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 35px; /* Reduce gap between columns */
    flex-wrap: wrap; /* Allow wrapping if needed */
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(3) h4 {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;   
}

.footer-column:nth-child(4) a {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -30px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }
}






/* lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll tablets */
@media (max-width: 992px) and (min-width: 768px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 0.9rem; /* Slightly smaller font size */
    padding: 4px 12px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }

  .header-logo {
    width: 55px;
    margin-top: -2px;
  }
  .bia {
  height: 35px;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 10s ease forwards;
  margin-right:-10px;
}}



@media (min-width: 768px) {
  .episode-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ cards on larger screens */
  }
}
@media (max-width: 992px) and (min-width: 768px) {
.episodes-header img {
  max-width: 40%;
  height: auto;
}

.episode-card h2 {
  font-size: .5rem;
    font-family: "abare22";
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.episode-text {
  color: #f0f0f0;
  position: relative;
  padding: 0.4rem 0;
}

.episode-text h2 {
  color: #f0f0f0;
  font-size: .8rem;
  margin: 0;
}

.episode-text {
  position: relative;
  padding: 0.4rem 0;
  color: #f0f0f0;
}

.episode-text h2 {
  font-size: .8rem;
  margin: 0;
  color: #f0f0f0;
}

.short-desc,
.full-desc {
  margin: 0.35rem 0;
  color: #f0f0f0;
  line-height: 1.4;
  
  transition: opacity 0.5s ease;
}


.short-desc {
  color: #f0f0f0;
  opacity: 1;
    font-family: "abare22";
  font-weight: 500;
  font-size: .7rem;
}

.full-desc {
    font-family: "abare22";
  font-weight: 400;
  color: #f0f0f0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: none;
}

.episode-cover-placeholder {
  width: 100%;
  height: 200;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  margin-top: -.2rem;

  border: 2px solid #d66406;
  position: relative;
  overflow: hidden;
}
.episode-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.episode-card {
  position: relative;
  background: rgba(34, 34, 34, 0.55); /* translucent dark */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: .8rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;

  border: 1px solid rgba(255, 255, 255, 0.08);


  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);

  transition: 
    transform 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    border 0.35s ease;
}
}


@media (max-width: 992px) and (min-width: 768px) {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    gap: 55px;
    flex-wrap: wrap; 
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.6rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }
}



/* IIIIIIIIIIIIIIIIIIIIIIIIIIIIII */
@media (max-width: 1080px) and (min-width: 992px) {
  .main-header {
    padding: 0 20px;
    height: 70px;
  }

  .header-section {
    flex-direction: row; /* Display sections horizontally again */
  }

  .header-left {
    margin-right: 20px; /* Add some spacing between sections */
  }

  .header-center {
    flex: 0 0 auto; /* Allow center to take its natural size */
    display: flex; /* Display nav buttons horizontally */
    gap: 8px; /* Reduce gap between nav items */
  }

  .nav-btn {
    font-size: 1rem; /* Slightly smaller font size */
    padding: 4px 18px; /* Reduce padding */
    border-radius: 5px; /* Smaller border radius */
  }

  .header-logo {
    width: 55px;
    margin-top: -2px;
  }
  .bia {
  height: 35px;
  clip-path: inset(0 100% 0 0);
  animation: revealMask 10s ease forwards;
  margin-right:-10px;
}}

@media (min-width: 768px) {
  .episode-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ cards on larger screens */
  }
}
@media (max-width: 1080px) and (min-width:992px) {
.episodes-header img {
  max-width: 30%;
  height: auto;
}

.episode-card h2 {
  font-size: .5rem;
    font-family: "abare22";
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.episode-text {
  color: #f0f0f0;
  position: relative;
  padding: 0.4rem 0;
}

.episode-text h2 {
  color: #f0f0f0;
  font-size: .8rem;
  margin: 0;
}

.episode-text {
  position: relative;
  padding: 0.4rem 0;
  color: #f0f0f0;
}

.episode-text h2 {
  font-size: .8rem;
  margin: 0;
  color: #f0f0f0;
}

.short-desc,
.full-desc {
  margin: 0.35rem 0;
  color: #f0f0f0;
  line-height: 1.4;
  
  transition: opacity 0.5s ease;
}


.short-desc {
  color: #f0f0f0;
  opacity: 1;
    font-family: "abare22";
  font-weight: 500;
  font-size: .7rem;
}

.full-desc {
    font-family: "abare22";
  font-weight: 400;
  color: #f0f0f0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  display: none;
}

.episode-cover-placeholder {
  width: 100%;
  height: 200;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  margin-top: -.2rem;

  border: 2px solid #d66406;
  position: relative;
  overflow: hidden;
}
.episode-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.episode-card {
  position: relative;
  background: rgba(34, 34, 34, 0.55); /* translucent dark */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: .8rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;

  border: 1px solid rgba(255, 255, 255, 0.08);


  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);

  transition: 
    transform 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.35s cubic-bezier(.4,0,.2,1),
    border 0.35s ease;
}
}






@media (max-width: 1080px) and (min-width: 992px) {
  .footer-glass {
    padding: 30px 20px;
  }

  .footer-logo img {
    width: 150px; /* Smaller logo on mobile */
  }

  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    gap: 55px;
    flex-wrap: wrap; 
  }

  .footer-column {
    min-width: auto; /* Remove minimum width */
    text-align: left; /* Align text to the left */
    flex: 1; /* Allow columns to grow and shrink equally */
  }

  .footer-column h4 {
    font-size: 1.1rem; /* Smaller heading size */
    text-align: right;
  }

.footer-column a {
  font-size: 0.8rem; /* Keep the small size */
  display: block; /* Stack link texts vertically */
  white-space: nowrap; /* Prevent wrapping to next line */
  overflow: hidden; /* Hide excess text */
  text-overflow: ellipsis; /* Add ellipsis (...) for long texts */
  text-align: right;
}



/* لینک‌های داخل این ستون */
.footer-column:nth-child(3) a {
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}


.footer-column:nth-child(4) a {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;   
}
.footer-column:nth-child(4) h4 {
  margin-right: -10px;
    display: inline-block;       
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;   
}





  .footer-bottom {
    margin-left: 0; /* Remove margin */
    margin-top: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
    margin-right: 0;
  }
}







