/*
Theme Name: Edumall Child
Theme URI: https://edumall.thememove.com/
Author: ThemeMove
Author URI: https://thememove.com/
Version: 1.0.0
Template: edumall
Text Domain:  edumall-child
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, Amir
*/

/*
 ----------------------------------------------------
  fonts
 ----------------------------------------------------
*/
@font-face {
    font-family: 'Caviar Dreams';
    src: url('fonts/CaviarDreams.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Caviar Dreams';
    src: url('fonts/CaviarDreams_Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Caviar Dreams';
    src: url('fonts/CaviarDreams_Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Caviar Dreams';
    src: url('fonts/CaviarDreams_BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

body, p, span, div, a, h1, h2, h3, h4, h5, h6, li, button, input, textarea {
    font-family: 'Caviar Dreams', sans-serif !important;
}

strong, b, h1, h2, h3, h4, h5, h6, .btn, .button, [class*="title"] {
    font-weight: bold !important;
}

/*
 ----------------------------------------------------
  Menu effects
 ----------------------------------------------------
*/

.hfe-flyout-container {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.hfe-flyout-container.hfe-flyout-open {
    transform: translateX(0);
}

.hfe-flyout-overlay {
    background: transparent !important; 
    pointer-events: auto !important;    
}

.hfe-flyout-container.hfe-flyout-close {
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); 
}

.hfe-flyout-left.hfe-flyout-open .hfe-flyout-content.push,
.hfe-flyout-left.hfe-flyout-open .hfe-flyout-content.slide {
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/*
 ----------------------------------------------------
  contact forms 7 styles
 ----------------------------------------------------
*/
.wpcf7-response-output {
  background: transparent !important;
  color: black  !important;
}

fieldset.hidden-fields-container{
	display: none !important;
}

span.wpcf7-list-item {display: block;}

.danesh-form-container, .danesh-form-container * {
    box-sizing: border-box;
}

.danesh-form-container fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 0 0 20px 0;
}

.danesh-form-container legend {
    font-weight: bold;
    color: #333;
    padding: 0 10px;
    margin-left: 10px;
    font-size: 1.1em;
}

/* The Grid Layout for Laptop/Tablet
  We use CSS Grid for a robust two-column layout.
*/
.danesh-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px; 						/* Space between columns */
    margin-bottom: 15px;
}

/* Forcing the label and input to be a single unit */
.danesh-form-container .danesh-form-col {
    display: flex;
    flex-direction: column;
    gap: 6px; 
    margin-bottom: 15px; 
}

/* Force labels to have NO bottom margin
  This is key to making them "stick" to the input field.
*/
.danesh-form-container label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0 !important; 
}

/* General styles for all input fields */
.danesh-form-container input[type="text"],
.danesh-form-container input[type="email"],
.danesh-form-container input[type="tel"],
.danesh-form-container input[type="date"],
.danesh-form-container textarea,
.danesh-form-container select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0; 
    font-size: 14px;
}

/* Spanning a column across the full width */
.danesh-form-container .danesh-form-col.full-width {
    grid-column: 1 / -1; /* Span from the first to the last grid line */
}

/* Styles for checkboxes and radio buttons */
.danesh-form-container .wpcf7-list-item {
    margin: 5px 15px 5px 0;
}
.danesh-form-container .wpcf7-list-item-label {
    font-weight: normal;
}

/* Submit button style */
.danesh-form-container input[type="submit"] {
    background-color: #201446;
    color: #23baad;
    padding: 0px 25px;
    border-radius: 5px;
    font-size: 16px;
    width: auto;
}
.danesh-form-container input[type="submit"]:hover {
    background-color: #23baad;
	color: #ffffff;
}

.terms-list-contact7 {
    list-style: disc;
    padding-left: 20px;
    margin: 5px 20px;
    color: #555;
}

.terms-list-contact7 li {
    margin-bottom: 3px;
}

.highlight-contact7 {
    font-weight: bold;
    color: #c0392b;
}

.danesh-h-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
}

@media (max-width: 768px) {
    .danesh-form-container .form-row {
        display: flex;
        flex-direction: column;
        gap: 0; /* Reset gap on the row */
        margin-bottom: 0; /* Reset margin on the row */
    }

    .danesh-form-container .danesh-form-col {
        margin-bottom: 20px; 
    }
}

/*
 ----------------------------------------------------------------------------------------------------------
   							The Event Maneger Plugin
 ----------------------------------------------------------------------------------------------------------
*/


.em-calendar {
  background: linear-gradient(328deg, #ffffff 0%, #d7f0fa 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2), 0 1px 8px rgba(0, 0, 0, 0.06);
  padding: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  /* کادر آبی */
  border: 3px solid #231444;
}

/* سربرگ ماه - */
.em-calendar td.month_name {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 1.4rem;
  padding: 18px 10px;
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.em-calendar td.month_name::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  transition: transform 0.6s ease-out;
}

.em-calendar td.month_name:hover::before {
  transform: scale(1);
}

.em-calendar td.month_name:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* دکمه‌های ناوبری - طراحی مینیمال با افکت 3D */
.em-calendar .em-cal-nav a {
  background: rgba(255, 255, 255, 0.9);
  color: #667eea;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-weight: bold;
}

.em-calendar .em-cal-nav a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  transform: translateY(-3px) rotate(15deg);
  box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

/* هدر روزهای هفته - رنگ زرد */
.em-calendar thead th {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #7c2d12;
  padding: 12px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
  margin: 2px;
}

.em-calendar thead th::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d97706, #ea580c);
  transition: width 0.3s ease;
}

.em-calendar thead th:hover::after {
  width: 100%;
}

/* سلول‌های روز - رنگ قرمز با افکت شیشه‌ای */
.em-calendar .em-cal-day {
  background: linear-gradient(135deg, #ffffff 0%, #d7f0fa 100%);
/*  border: 1px solid #ef4444;*/
  padding: 12px 8px !important;
  min-height: 35px;
  vertical-align: top;
  position: relative;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /*font-size: 0.95rem;*/
  /*color: #7f1d1d;*/
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.em-calendar .em-cal-day::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  border-radius: 12px;
}

.em-calendar .em-cal-day:hover::before {
  opacity: 1;
}

/* افکت شیشه‌ای در hover */
.em-calendar .em-cal-day:hover {
  transform: translateY(-4px);
  /*box-shadow: 0 15px 25px rgba(239, 68, 68, 0.25);*/
  /*border-color: #dc2626;*/
  background: rgb(28 97 231 / 38%)
  backdrop-filter: blur(15px) saturate(180%);
  /*border: 2px solid rgba(255, 255, 255, 0.4);*/
  /*color: #991b1b;*/
}

.em-calendar .em-cal-day > * {
  position: relative;
  z-index: 1;
}

/* روزهای دارای رویداد */
.em-calendar .em-cal-day.has-events {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.9) 0%, rgba(239, 68, 68, 0.8) 100%);
  border: 2px solid #dc2626;
  font-weight: 700;
  color: #7f1d1d;
}

.em-calendar .em-cal-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(20, 184, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}

/* روز امروز - طراحی درخشان */
.em-calendar .em-cal-day-today {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  border-radius: 14px !important;
  box-shadow: 0 0 0 3px #3b82f6, 0 8px 25px rgba(102, 126, 234, 0.4) !important;
  position: relative;
  overflow: hidden;
  font-weight: 700;
}

.em-calendar .em-cal-day-today::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* رویدادها */
.em-calendar .em-cal-day .event-title {
  display: inline-block;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(20, 184, 166, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: all 0.3s ease;
}

.em-calendar .em-cal-day .event-title:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(20, 184, 166, 0.35);
}

/* افکت شیشه‌ای برای روزهای هفته */
.em-calendar thead th:hover {
  background: rgba(251, 191, 36, 0.3);
  backdrop-filter: blur(15px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(251, 191, 36, 0.3);
}

/* بهبود ریسپانسیو - برای موبایل */
@media (max-width: 768px) {
  .em-calendar {
    max-height: 320px;
    padding: 15px 10px;
    border: 2px solid #3b82f6;
  }
  
  .em-calendar .em-cal-day {
    min-height: 60px;
    padding: 8px 5px;
    font-size: 0.85rem;
  }
  
  .em-calendar thead th {
    font-size: 0.8rem;
    padding: 8px 5px;
    letter-spacing: 0.5px;
  }
  
  .em-calendar td.month_name {
    font-size: 1.2rem;
    padding: 14px 8px;
  }
  
  .em-calendar .em-cal-nav a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}


.em.em-calendar{
	--header-background: #231444 !important;
	--header-color: #ffffff !important
}

button.em-event-add-to-calendar.em-tooltip-ddm.em-clickable.input{
	background-color: #23baad;
}

button.em-event-add-to-calendar.em-tooltip-ddm.em-clickable.input:hover{
	background-color: #031f42;
}

/*
 ----------------------------------------------------------------------------------------------------------
   							Sina Flipbox
 ----------------------------------------------------------------------------------------------------------
*/
.sina-flipbox-back.sina-flipbox-effect-h-flip{
	display: flex;
	align-items: center;
} 

/*
 ----------------------------------------------------------------------------------------------------------
   							Album Gallery
 ----------------------------------------------------------------------------------------------------------
*/

.swiper-zoom-container{
	display: none !important;
}

#elementor-lightbox-slideshow-single-img{
	display: none !important;
}


.gallery-title {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}


/* .group:after{
	content: "" !important;
} */


.pbCaptionText .title {
	display: none !important;
}

.stack:last-of-type {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}


img.animated{
	max-width: 150px;
	max-height: 150px;
}

.stack.twisted:before{
	-webkit-transform: rotate(10deg);
	-moz-transform: rotate(10deg);
	transform: rotate(3deg) !important;
}

.stack.twisted:after{
	-webkit-transform: rotate(-10deg);
	-moz-transform: rotate(-10deg);
	transform: rotate(1deg) !important;
}

.group, .stack {
  margin: 0 auto !important;
  display: inline-block;
}

.moshfeghstyle{
	padding-bottom: 25px;
	text-align:center;
	text-transform: uppercase;
}

/*
 ----------------------------------------------------------------------------------------------------------
   							Read more and read less
 ----------------------------------------------------------------------------------------------------------
*/
.expandable-container {
  position: relative;
  max-height: 350px;
  overflow: hidden;
  transition: max-height 0.5s ease; 
}

@media (max-width: 768px) {
  .expandable-container {
    max-height: 250px;
  }
}

.expandable-container.expanded {
  max-height: none; 
}

.expandable-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(
  	to bottom,
  	rgba(215, 240, 250, 0) 0%,
  	rgba(215, 240, 250, 0.3) 30%,
  	rgba(215, 240, 250, 0.6) 60%,
  	rgba(215, 240, 250, 0.9) 85%,
  	rgba(215, 240, 250, 1) 100%
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.expandable-container.expanded::after {
  opacity: 0;
}

.expand-button {
  display: block;
  margin: 50px auto;
  padding: 0px 30px;
  background: #201446;
  color: #23baad;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.expand-button:hover {
  background: #23baad;
	color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.expand-button::after {
  content: ' ▼';
  display: inline-block;
  transition: transform 0.3s ease;
  margin-right: 8px;
}

.expand-button.expanded::after {
  transform: rotate(180deg);
}
