/**
 * WHITE MEMORIAL HOMOEOPATHIC MEDICAL COLLEGE & HOSPITAL
 * Announcements & Upcoming Events Section Styles
 */

/* Section Outer Container */
.wm-announcements-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #faf8f8 50%, #ffffff 100%);
  padding: 70px 0 65px;
  border-top: 1px solid rgba(169, 29, 34, 0.08);
  border-bottom: 1px solid rgba(169, 29, 34, 0.08);
  overflow: hidden;
}

.wm-announcements-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(169, 29, 34, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.wm-announcements-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(128, 0, 0, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.wm-announcements-section .container {
  position: relative;
  z-index: 1;
}

/* Section Header */
.wm-anno-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.wm-anno-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(169, 29, 34, 0.08);
  color: #a91d22;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(169, 29, 34, 0.15);
}

.wm-anno-kicker i {
  font-size: 13px;
  color: #a91d22;
  animation: wmBellShake 2.5s infinite ease-in-out;
}

@keyframes wmBellShake {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-12deg); }
  20%, 40% { transform: rotate(12deg); }
  50% { transform: rotate(0); }
}

.wm-anno-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.wm-anno-title .highlight {
  color: #a91d22;
  font-weight: 800;
}

.wm-anno-subtitle {
  color: #64748b;
  font-size: 15px;
  margin: 0;
  max-width: 580px;
  line-height: 1.5;
}

.wm-anno-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #a91d22;
  border: 1.5px solid rgba(169, 29, 34, 0.25);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.wm-anno-view-all-btn:hover {
  background: #a91d22;
  color: #ffffff;
  border-color: #a91d22;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(169, 29, 34, 0.25);
}

.wm-anno-view-all-btn i {
  transition: transform 0.25s ease;
}

.wm-anno-view-all-btn:hover i {
  transform: translateX(4px);
}

/* Left Column: Panel Box & Scrollable Container */
.wm-anno-left-panel {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 24px;
  height: 540px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.wm-anno-panel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.wm-anno-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.wm-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: wmPulseGreen 1.8s infinite;
}

@keyframes wmPulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Scrollable Events List (Scrollable within section) */
.wm-anno-scroll-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Custom Sleek Scrollbar */
.wm-anno-scroll-list::-webkit-scrollbar {
  width: 5px;
}

.wm-anno-scroll-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 10px;
}

.wm-anno-scroll-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.wm-anno-scroll-list::-webkit-scrollbar-thumb:hover {
  background: #a91d22;
}

/* Event List Card Item */
.wm-anno-event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fdfdfd;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.wm-anno-event-item:hover {
  background: #ffffff;
  border-color: rgba(169, 29, 34, 0.3);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(169, 29, 34, 0.08);
}

/* Date Chip on Item */
.wm-anno-item-date {
  min-width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #800000 0%, #a91d22 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 10px rgba(169, 29, 34, 0.2);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.wm-anno-event-item:hover .wm-anno-item-date {
  transform: scale(1.04);
}

.wm-anno-item-date .day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.wm-anno-item-date .month-year {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* Item Content */
.wm-anno-item-content {
  flex: 1;
  min-width: 0;
}

.wm-anno-item-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wm-anno-cat-tag {
  display: inline-block;
  background: rgba(169, 29, 34, 0.08);
  color: #a91d22;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.wm-anno-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.wm-anno-event-item:hover .wm-anno-item-title {
  color: #a91d22;
}

.wm-anno-item-details {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-anno-item-details span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wm-anno-item-details i {
  color: #94a3b8;
  font-size: 11px;
}

.wm-anno-item-arrow {
  color: #cbd5e1;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 6px;
}

.wm-anno-event-item:hover .wm-anno-item-arrow {
  color: #a91d22;
  transform: translateX(3px);
}

/* Right Column: Most Recent Upcoming Event (Spotlight) */
.wm-anno-spotlight-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  height: 540px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.wm-anno-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(169, 29, 34, 0.1);
  border-color: rgba(169, 29, 34, 0.25);
}

/* Spotlight Media Cover */
.wm-spotlight-media {
  position: relative;
  height: 220px;
  width: 100%;
  overflow: hidden;
  background-color: #1e293b;
  flex-shrink: 0;
}

.wm-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wm-anno-spotlight-card:hover .wm-spotlight-img {
  transform: scale(1.06);
}

.wm-spotlight-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.wm-spotlight-badge-group {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.wm-spotlight-tag-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #a91d22;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.wm-pulse-dot-white {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: wmPulseWhite 1.6s infinite;
}

@keyframes wmPulseWhite {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.wm-spotlight-cat-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: #111827;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Spotlight Card Body */
.wm-spotlight-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #ffffff;
}

.wm-spotlight-datetime-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a91d22;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.wm-spotlight-datetime-pill i {
  font-size: 13px;
}

.wm-spotlight-event-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wm-spotlight-venue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.wm-spotlight-venue i {
  color: #a91d22;
}

.wm-spotlight-desc {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Spotlight CTA Button */
.wm-spotlight-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #800000 0%, #a91d22 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 14px rgba(169, 29, 34, 0.25);
  margin-top: auto;
}

.wm-spotlight-btn:hover {
  background: linear-gradient(135deg, #6b0000 0%, #90171b 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(169, 29, 34, 0.35);
}

.wm-spotlight-btn .arrow {
  transition: transform 0.25s ease;
}

.wm-spotlight-btn:hover .arrow {
  transform: translateX(4px);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .wm-announcements-section {
    padding: 50px 0;
  }
  .wm-anno-left-panel,
  .wm-anno-spotlight-card {
    height: auto;
    margin-bottom: 24px;
  }
  .wm-anno-scroll-list {
    max-height: 400px;
  }
  .wm-spotlight-media {
    height: 200px;
  }
  .wm-anno-title {
    font-size: 26px;
  }
}

@media (max-width: 576px) {
  .wm-anno-title {
    font-size: 22px;
  }
  .wm-anno-left-panel {
    padding: 16px;
  }
  .wm-anno-event-item {
    padding: 12px;
    gap: 12px;
  }
  .wm-anno-item-date {
    min-width: 52px;
    height: 52px;
  }
  .wm-anno-item-date .day {
    font-size: 17px;
  }
  .wm-spotlight-body {
    padding: 18px;
  }
}

/* 27-inch & Large Monitor Media Queries */
@media (min-width: 1600px) {
  .wm-announcements-section .container {
    max-width: 1560px !important;
  }
  .wm-anno-title {
    font-size: 34px;
  }
  .wm-anno-left-panel,
  .wm-anno-spotlight-card {
    min-height: 440px;
  }
  .wm-anno-scroll-list {
    max-height: 380px;
  }
}

@media (min-width: 2000px) {
  /* 27-inch 2560x1440 QHD / 4K Monitors */
  .wm-announcements-section .container {
    max-width: 1740px !important;
  }
  .wm-anno-title {
    font-size: 38px;
  }
  .wm-anno-left-panel,
  .wm-anno-spotlight-card {
    min-height: 480px;
    border-radius: 26px;
  }
  .wm-anno-scroll-list {
    max-height: 420px;
  }
  .wm-anno-event-title {
    font-size: 16.5px;
  }
  .wm-spotlight-body h4 {
    font-size: 21px;
  }
}

