.cld {
	position: relative;
	width: 1044px;
	border-radius: 40px;
	height: 565px;
	margin: 50px auto;
	background-color: #2E3C61;
	background-image: url(https://naghlehaml.ir/wp-content/themes/naghl/image/cld.png);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: contain;
	padding: 0 50px; /* تغییر padding برای کنترل بهتر */
    box-sizing: border-box;
    display: flow-root; /* جلوگیری از تداخل float ها */
}
.cld::before {
	content: "";
	display: block;
	position: absolute;
	height: 325px;
	width: 60px;
	background: url(https://naghlehaml.ir/wp-content/themes/naghl/image/vide.svg);
	top: 0;
	bottom: 0;
	right: 200px;
	margin: auto;
	background-size: contain;
	background-repeat: no-repeat;
}
/* اصلاح تراز عمودی متن */
.cld::after {
	content: "تقویم رویداد‌ها";
	position: absolute;
	top: 50%;
	right: 0px;
	transform: translateY(-50%) rotate(90deg);
	transform-origin: center;
	color: #fff;
	font-size: 50px;
	font-weight: 700;
	white-space: nowrap;
}
.cld table {
	float: left;
	color: #fff;
	width: 64%;
	text-align: center;
	font-size: 20px;
	border-collapse: collapse;
	margin-bottom: 20px;
}
.cld h3 {
	font-size: 30px;
	text-align: center;
	color: #eee;
	width:100%;
	float: right;
	margin: 55px 0 25px;
}
.cld .fa {
	border: solid 1px;
	border-radius: 10px;
	padding: 6px 15px;
	float: right;
}
.cld .fa-angle-left {
	float: left;
}
.cld th {
	padding-bottom: 10px;
}
.cld td {
	padding: 0;
}
.cld td b {
	cursor: pointer;
	display: block;
	margin: auto;
	width: 50px;
	height: 46px;
	line-height: 47px;
}
.cld td.act b {
	border-radius: 16px;
	background: #E6B12C;
}
.cld td.dis {
	opacity: 0.6;
}

td.has-event {
    position: relative;
}
td.has-event::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: #ff8c00;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff8c00, 0 0 10px #ff8c00;
    animation: pulse-orange 1.5s infinite ease-in-out;
}
@keyframes pulse-orange {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.monthly-events-list {
    color: #ddd;
    width:100%;
    float: right;
    border-top: solid 1px #434f71;
    padding: 50px;
	padding-top: 100px;
    box-sizing: border-box;
    margin-top: 50px;
	margin-bottom:100px;
}

.monthly-events-list h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-align: right;
    color: #ddd;
}

.monthly-events-list ul {
    list-style: disc;
    padding-right: 20px; 
    margin: 0;
}

.monthly-events-list li {
    padding: 5px 0;
    line-height: 1.5;
}

.monthly-events-list a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.2s;
}

.monthly-events-list a:hover {
    color: #E6B12C;
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75); z-index: 1000; justify-content: center;
    align-items: center; padding: 20px;
}
.modal-overlay.is-visible { display: flex; }
.modal-content {
    background: #fff; padding: 20px; border-radius: 8px; position: relative;
    width: 100%; max-width: 500px; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-height: 90vh; display: flex; flex-direction: column;
}
.modal-close-btn {
    position: absolute; top: 5px; left: 10px; background: none; border: none;
    font-size: 30px; color: #aaa; cursor: pointer;
}
#modal-title {
    text-align: right; font-size: 18px; font-weight: bold; color: #333;
    margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
#modal-events-list { overflow-y: auto; padding-right: 15px; }
.event-list-item {
    display: flex; align-items: center; text-decoration: none; color: #333;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s;
}
.event-list-item:last-child { border-bottom: none; }
.event-list-item:hover { background-color: #f8f9fa; }
.event-item-image {
    width: 60px; height: 60px; object-fit: cover; border-radius: 6px;
    margin-left: 15px; background-color: #eee;
}
.event-item-title { font-size: 16px; font-weight: 500; }


.ticker-slider-container {
    color: #fff;
    width: 64%;
    float: left;
    border-top: solid 1px #434f71;
    padding: 15px 20px;
    box-sizing: border-box;
    margin-top: 20px;
}

.ticker-slider-container h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-align: right;
    color: #fff;
}

.ticker-slider {
    height: 25px; /* ارتفاع برای نمایش یک خط نوشته */
    position: relative;
    cursor: pointer;
	padding-top:30px;
}
.ticker-slider:hover .ticker-slider-link {
    animation-play-state: paused;
}

.ticker-slider-link {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.ticker-slider-link span {
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s;
}

.ticker-date {
    font-weight: bold;
    color: #E6B12C;
    margin-left: 10px;
}

.ticker-title {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* کلاس‌های انیمیشن */
.ticker-date.slide-out {
    transform: translateY(100%);
    opacity: 0;
}
.ticker-date.slide-in {
    transform: translateY(-100%);
    opacity: 0;
}

.ticker-title.slide-out {
    transform: translateY(-100%);
    opacity: 0;
}
.ticker-title.slide-in {
    transform: translateY(100%);
    opacity: 0;
}
