.icfb-events-header { text-align:center; margin-bottom:2rem;}
.icfb-event-grid { display:flex; flex-wrap:wrap; gap:2rem; justify-content:center;}
@media (max-width: 900px) {
  .icfb-event-grid { gap: 1.3rem; }
}
@media (max-width: 600px) {
  .icfb-event-grid { gap: 0.7rem; }
  .icfb-event-content h3 { font-size:1.18em;}
  .icfb-event-content { padding: 1em 0.5em;}
}
.icfb-event-thumb img { width:100%; aspect-ratio:16/9; object-fit:cover;}
.icfb-event-content { padding:1.2rem; }
.icfb-event-meta { font-size:.97rem; color:#DC143C; margin:0.5rem 0;}
.icfb-event-date, .icfb-event-loc { display:inline-block; margin:0 .7em 0 0;}
.icfb-event-calendar { margin:2rem auto; max-width:480px;}
.icfb-event-calendar table { width:100%; border-collapse:collapse; background:#f9f9fa; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px #DC143C15;}
.icfb-event-calendar th, .icfb-event-calendar td { padding:8px; text-align:center;}
.icfb-event-calendar td.has-event { background:#DC143C33; font-weight:bold; color:#DC143C; border-radius:6px;}
.icfb-event-btn { background:#DC143C; }
.icfb-event-btn.icfb-details-btn {
    background: #fff;
    color: #DC143C;
    border: 2px solid #DC143C;
    margin-left: 0;
    margin-right: 8px;
}
.icfb-event-btn.icfb-details-btn:hover {
    background: #DC143C11;
    color: #222;
    border-color: #DC143C;
}
.icfb-event-btn:not(:last-child) {
    margin-left: 8px;
}
.icfb-event-modal {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(30,0,0,0.22); display: flex; align-items: center; justify-content: center;
}
.icfb-modal-content {
    background: #fff; border-radius: 14px; padding: 2rem; max-width: 500px; width: 95vw; box-shadow: 0 10px 40px #2225;
    position: relative; text-align: right; max-height: 85vh; overflow-y: auto;
    animation: icfbModalShow .3s;
}
.icfb-modal-close {
    position: absolute; left: 12px; top: 10px; font-size: 2rem; color: #DC143C; cursor: pointer;
}
@keyframes icfbModalShow { from {transform:scale(0.88);} to {transform:scale(1);} }
.icfb-modal-desc { font-size: 1.13rem; margin: 15px 0 0 0; line-height: 1.9;}
.icfb-bookform input[type=text], .icfb-bookform input[type=email] {
    padding: .8em; border-radius: 7px; border:1px solid #DC143C44; font-size:1.08em; margin-bottom:8px;
}
.icfb-bookform {
    background: #fff;
    padding: 1rem 0 0 0;
    border-radius: 10px;
}
.icfb-bookform input[type="text"],
.icfb-bookform input[type="email"] {
    width: 95%;
    padding: .9em 1em;
    border-radius: 8px;
    border: 1.5px solid #DC143C22;
    margin-bottom: 13px;
    font-size: 1.09em;
    background: #f9f9fa;
    outline: none;
    transition: border .18s;
    text-align: right;
}
.icfb-bookform input[type="text"]:focus,
.icfb-bookform input[type="email"]:focus {
    border-color: #DC143C77;
    background: #fff;
}
.icfb-bookform .icfb-event-btn {
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 6px;
    font-size: 1.05em;
    background: #DC143C;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px #DC143C22;
    transition: background .17s;
}
.icfb-bookform .icfb-event-btn:hover {
    background: #a8122d;
}
.icfb-book-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}
.icfb-event-countdown {
    background: #ffe6ea;
    padding: 8px 15px;
    border-radius: 9px;
    font-size: 1.14em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #B90028;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 9px;
    display: block;
   margin: 15px auto 0 auto;
}
.icfb-event-countdown b, .icfb-event-countdown strong {
    color: #DC143C;
    font-size: 1.12em;
}
.icfb-event-countdown.urgent {
   animation: blink-red 1s linear infinite;
}
@keyframes blink-red {
   0%,100%{background:#ffe6ea;}
   50%{background:#DC143C22;}
}
.icfb-event-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 24px #DC143C22;
overflow: visible;
  transition: .28s cubic-bezier(.45,.05,.55,1.12);
  border: 2px solid #DC143C11;
  position: relative;
  min-height: 430px; /* اجعل البطاقة أطول لو مختفية */
    padding: 0.5em;
    min-width: 99vw;
    max-width: 99vw;
    margin: 0 auto;
    position:relative; isolation:isolate;

    
  
}
.icfb-hover-text {
  opacity: 0 ;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  min-height: 44px;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg,#DC143C 80%,#fff0 100%);
  font-weight: bold;
  padding: 12px 0 10px 0;
  font-size: 1.13em;
  border-radius: 0 0 14px 14px;
  transition: all .35s cubic-bezier(.47,1.64,.41,.8);
  z-index: 99 ;
  transform: translateY(25px) scale(.98);
  pointer-events: none;
    text-shadow: 0 2px 8px #dc143c44, 0 1px 0 #fff;
     animation: icfbPop 0.6s cubic-bezier(.45,1.9,.45,1) 1;
      transition: all .35s cubic-bezier(.47,1.64,.41,.8);
  transition-delay: 0.07s;
}
@keyframes icfbPop {
  0% {transform: scale(.96) translateY(35px);}
  60% {transform: scale(1.06) translateY(-4px);}
  100% {transform: scale(1) translateY(0);}

}
.icfb-event-card::before{
  content:""; position:absolute; inset:-2px;
  background: conic-gradient(from 180deg, #DC143C, #ff7aa8, #DC143C);
  border-radius: 20px; z-index:-1; filter: blur(8px) opacity(.35);
  animation: icfbSpin 6s linear infinite;
}
@keyframes icfbSpin { to { transform: rotate(360deg); } }

.icfb-event-card:hover .icfb-hover-text {
  opacity: 1 ;
  transform: translateY(0) scale(1);
}
.icfb-bookform.icfb-success .icfb-book-msg {
  color: #09a809;
  font-weight: bold;
  font-size: 1.1em;
  margin: 15px 0;
}
.icfb-bookform.icfb-success {
  background: #f6fff6;
  border: 1.5px solid #79e979;
  min-height: 60px;
}
.icfb-event-calendar td.has-event a:hover {
  background: #DC143C22;
  border-radius: 8px;
  text-decoration: none;
  color: #B90028;
}
.icfb-event-content p {
  color: #444;
  font-size: 1.11em;
  line-height: 1.8;
  margin-bottom: 0.7em;
  min-height: 48px;
}
.icfb-event-actions {
  display: flex;
  flex-direction: row;         /* أفقي افتراضي */
  gap: 13px;
  align-items: stretch;
  justify-content: center;
  margin: 24px 0 12px 0;
  flex-wrap: wrap;
}

.icfb-event-btn {
  min-width: 160px;
  width: 100%;
  max-width: 230px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.11em;
  border-radius: 14px;
  margin: 0;
  font-weight: bold;
  transition: background .18s, box-shadow .18s, color .14s, transform .18s;
  box-shadow: 0 2px 8px #dc143c12;
  border: 2px solid transparent;
  padding: 11px 0 10px 0;
  position: relative;
  animation: icfbBtnPop .85s cubic-bezier(.49,2.3,.52,.99) both;
  will-change: transform;
}

/* زر واتساب */
.icfb-share-wa {
  background: #21c65b !important;
  color: #fff !important;
  border: none;
}
.icfb-share-wa:before {
  content: "🟢 ";
  margin-left: 4px;
}

/* زر التفاصيل */
.icfb-details-btn {
  background: #fff !important;
  color: #DC143C !important;
  border: 2px solid #DC143C !important;
}
.icfb-details-btn:before {
  content: "ℹ️ ";
  margin-left: 3px;
}
.icfb-details-btn:hover {
  background: #DC143C11 !important;
  color: #222 !important;
}

/* زر احجز خارجي */
.icfb-event-btn:first-child {
  background: linear-gradient(90deg,#DC143C 80%,#fff0 100%);
  color: #fff;
}
.icfb-event-btn:first-child:before {
  content: "🎟️ ";
  margin-left: 3px;
}

/* زر سجل الآن */
.icfb-book-btn {
  background: #fff5f7;
  color: #B90028;
  border: 2px solid #DC143C22;
}
.icfb-book-btn:before {
  content: "✍️ ";
  margin-left: 4px;
}
.icfb-book-btn:hover {
  background: #dc143c12;
  color: #dc143c;
}

/* هزّة عند الهوفر */
.icfb-event-btn:hover, .icfb-share-wa:hover {
  animation: icfbBtnShake .18s cubic-bezier(.53,.13,.41,1.6) 1;
  filter: brightness(1.13) drop-shadow(0 2px 8px #dc143c25);
  transform: scale(1.03);
}

/* أنيميشن دخول */
@keyframes icfbBtnPop {
  0% { transform: scale(.88) translateY(18px); opacity: 0; }
  60% { transform: scale(1.08) translateY(-4px); opacity: .92; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes icfbBtnShake {
  0%   { transform: scale(1.02) translateY(0); }
  30%  { transform: scale(1.05) translateY(-3px);}
  60%  { transform: scale(.97) translateY(2px);}
  100% { transform: scale(1.03) translateY(0);}
}

/* موبايل: توزيع عمودي */
@media (max-width: 650px) {
  .icfb-event-actions { flex-direction: column; gap: 10px; }
  .icfb-event-btn { min-width: 0; width: 100%; max-width: 100%; }
}