/* Dark theme and polish for FullCalendar */
.calendar-main-block{
  background: linear-gradient(120deg, #181a1b 80%, #202225 100%);
  border-radius: 16px;
  box-shadow: 0 6px 28px #00000033;
  padding: 2rem;
}

.calendar-fc-wrapper{
  background: #1f2327;
  border: 1px solid #2d3237;
  border-radius: 12px;
  overflow: hidden;
}
/* =========================
   Event cards – PRO style
   ========================= */

.event-row {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 22px;
    background:
        linear-gradient(145deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.015)
        );
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* línea de acento lateral */
.event-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    width: 3px;
    height: 76%;
    background: linear-gradient(
        to bottom,
        rgba(13,110,253,0),
        rgba(13,110,253,0.9),
        rgba(13,110,253,0)
    );
    opacity: 0;
    transition: opacity .35s ease;
}

.event-row:hover::before {
    opacity: 1;
}

.event-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.55);
    border-color: rgba(13,110,253,0.35);
}

/* =========================
   Imagen
   ========================= */

.news-thumb-wrapper {
    width: 220px;
    min-width: 220px;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f0f12;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.event-row:hover .news-thumb {
    transform: scale(1.06);
}

/* =========================
   Texto
   ========================= */

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 6px;
}

.news-info p {
    font-size: .9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.45;
}

/* =========================
   Fechas (badges)
   ========================= */

.event-row .badge {
    font-size: .72rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(13,110,253,0.15);
    color: #7fb0ff;
    border: 1px solid rgba(13,110,253,0.25);
}

/* =========================
   Botón
   ========================= */

.news-actions {
    display: flex;
    align-items: center;
}

.news-actions .btn {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .75rem;
    letter-spacing: .4px;
    border: 1px solid rgba(13,110,253,0.5);
    background: transparent;
    color: #7fb0ff;
    transition: all .3s ease;
}

.news-actions .btn:hover {
    background: rgba(13,110,253,0.15);
    box-shadow: 0 0 0 4px rgba(13,110,253,0.15);
    color: #fff;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .event-row {
        flex-direction: column;
    }

    .news-thumb-wrapper {
        width: 100%;
        height: 180px;
    }

    .news-actions {
        margin-top: 10px;
    }
}



/* FullCalendar root */
.fc{
  --fc-border-color: #2d3237;
  --fc-button-bg-color: #23272b;
  --fc-button-border-color: #343a40;
  --fc-button-text-color: #e9ecef;
  --fc-button-hover-bg-color: #2a2f34;
  --fc-button-hover-border-color: #3b4147;
  --fc-button-active-bg-color: #0d6efd;
  --fc-button-active-border-color: #0d6efd;
  --fc-button-active-text-color: #0b0e12;
  --fc-page-bg-color: #1b1f23;
  --fc-neutral-bg-color: #1f2327;
  --fc-bottom-bg-color: #1b1f23;
  --fc-list-event-hover-bg-color: #2a2f34;
}
/* =========================
   CALENDARIO LATERAL
   ========================= */

.calendar-side-card {
  background: linear-gradient(145deg, #101017, #1a1a25);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 35px rgba(0,0,0,.4);
}

#events-calendar {
  --fc-border-color: rgba(255,255,255,.08);
  --fc-today-bg-color: rgba(120,80,255,.15);
  font-size: 0.85rem;
}

.fc {
  color: #fff;
}

.fc-daygrid-event {
  background: linear-gradient(135deg, #7a3cff, #9d6cff);
  border: none;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 0.75rem;
}

.fc-daygrid-event:hover {
  filter: brightness(1.15);
}

.fc-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
}

.fc-button {
  background: #222 !important;
  border: none !important;
}

.fc-button:hover {
  background: #333 !important;
}

.calendar-side-card {
  background: rgba(20, 20, 30, 0.85);
  border-radius: 16px;
  padding: 16px;
  height: 100%;
}

#events-calendar {
  min-height: 420px;
}

.fc .fc-toolbar-title{
  color: #e9ecef;
  font-weight: 700;
}
.fc .fc-button{
  border-radius: 8px;
}
.fc .fc-button-group .fc-button{
  margin-right: 6px;
}

.fc .fc-col-header-cell-cushion{
  color: #cfd3d6;
}
.fc .fc-daygrid-day-number{
  color: #adb5bd;
}
.fc .fc-daygrid-day{
  background: #202427;
}
.fc .fc-daygrid-day.fc-day-today{
  background: #24313a;
}

/* Event appearance */
.fc .fc-event{
  border-radius: 8px;
  border: 1px solid #2d3237;
  box-shadow: 0 2px 8px #00000022;
}
.fc .fc-event .fc-event-main{
  padding: 2px 6px;
}

/* List view polish (if used) */
.fc .fc-list-table{
  color: #e9ecef;
}
.fc .fc-list-day-cushion{
  background: #23272b;
}
.fc .fc-list-event-title a{
  color: #0d6efd;
  text-decoration: none;
}
.fc .fc-list-event:hover{
  background: #2a2f34;
}

/* Modal backdrop reused */
.noticia-modal{
  background: #1f2327;
  border: 1px solid #2d3237;
  border-radius: 12px;
}
.calendar-main-block {
    background: linear-gradient(120deg, #181a1b 80%, #0d6efd 100%);
    border-radius: 20px;
    box-shadow: 0 4px 24px #00000022;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-page-title {
  color: #fff;
  font-family: 'Exo 2', 'Kanit', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.calendar-fc-wrapper {
  background: #23272b;
  border-radius: 16px;
  box-shadow: 0 4px 24px #00000022;
  padding: 2rem 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
}

.fc-day-today {
    background-color: rgba(13, 110, 253, 0.4) !important;
    color: #ffffff !important;
}

.fc {
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.fc-toolbar-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
}

.fc-daygrid-day-number {
  color: #fff;
  font-weight: bold;
}

.fc-event {
  color: #23272b !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer !important;
}

.fc-col-header-cell-cushion {
  color: #fff !important;
  font-weight: bold;
  text-decoration: none !important;
  cursor: default !important;
  text-transform: capitalize;
}

@media (max-width: 900px) {
  .calendar-fc-wrapper {
    padding: 1rem 0.2rem;
    max-width: 100vw;
  }
  .fc-toolbar-title {
    font-size: 1.2rem;
  }
}

/* Filters: dark UI for inputs/selects/buttons */
.search-form .form-control,
.search-form .form-select {
  background-color: #1f2327;
  color: #e9ecef;
  border: 1px solid #2d3237;
  border-radius: 10px;
}

.search-form .form-control::placeholder {
  color: #9aa0a6;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
  background-color: #1b1f23;
  color: #ffffff;
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Normalize filter control heights so all align evenly */
.search-form .form-control,
.search-form .form-select,
.search-form .input-group .btn {
  height: 42px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Ensure input-group doesn't grow due to button line-height */
.search-form .input-group .btn {
  line-height: 1.25;
}

.search-form .btn.search-btn {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}
.search-form .btn.search-btn:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

.search-form .btn.btn-outline-secondary {
  color: #e9ecef;
  border-color: #2d3237;
}
.search-form .btn.btn-outline-secondary:hover {
  background-color: #2a2f34;
  border-color: #3b4147;
  color: #ffffff;
}

/* Calendar badges: use primary-like blue instead of info */
.calendar-main-block .badge.bg-info {
  background-color: #0d6efd !important;
  color: white !important; /* keep readable text on bright blue */
}

/* =========================
   Calendar side card
   ========================= */

.calendar-side-card {
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.calendar-side-card h5 {
    font-weight: 700;
    letter-spacing: .5px;
}

/* =========================
   Event cards refinement
   ========================= */

.event-row {
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.015)
    );
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all .3s ease;
}

.event-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    border-color: rgba(13,110,253,.35);
}

.news-thumb-wrapper {
    width: 210px;
    min-width: 210px;
    height: 120px;
    overflow: hidden;
    border-radius: 14px;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
}
