.notices-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 3% 8%, rgba(215, 173, 85, 0.15), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #f8f1e7 100%);
}

.notices-section::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(137, 12, 37, 0.065);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(137, 12, 37, 0.018), 0 0 0 96px rgba(137, 12, 37, 0.012);
  pointer-events: none;
}

.notices-section .updates-grid {
  position: relative;
  z-index: 1;
}

.notices-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 10px;
}

.notices-heading > div {
  max-width: 720px;
}

.notices-heading h2 {
  margin: 6px 0 8px;
  color: #710d23;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.notices-heading p {
  margin: 0;
  color: #687383;
  font-size: 0.84rem;
  line-height: 1.7;
}

.notices-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, #890c25, #650919);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(137, 12, 37, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.notices-all:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(137, 12, 37, 0.25);
}

.notices-section .panel {
  position: relative;
  overflow: hidden;
  padding: 25px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(137, 12, 37, 0.09);
  border-radius: 15px;
  box-shadow: 0 14px 34px rgba(70, 25, 23, 0.1);
  backdrop-filter: blur(8px);
}

.notices-section .notice-panel {
  border-top: 4px solid #890c25;
}

.notices-section .notice-panel::after {
  content: "\f1ea";
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(137, 12, 37, 0.045);
  font: 900 4.6rem/1 "Font Awesome 7 Free";
  pointer-events: none;
}

.notices-section .section-heading {
  position: relative;
  z-index: 1;
  align-items: center;
  margin-bottom: 18px;
}

.notices-section .section-heading h3 {
  margin-top: 3px;
  color: #710d23;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
}

.notices-section .section-heading > a {
  display: inline-flex;
  padding: 7px 11px;
  color: #7a1025;
  background: #fff4df;
  border: 1px solid #eddbb7;
  border-radius: 999px;
}

.notices-section .tabs {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 13px;
  padding: 4px;
  background: #f5eee5;
  border-radius: 9px;
}

.notices-section .tab {
  padding: 7px 12px;
  color: #697282;
  background: transparent;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.notices-section .tab:hover {
  color: #890c25;
}

.notices-section .tab.active {
  color: #fff;
  background: #890c25;
  box-shadow: 0 5px 12px rgba(137, 12, 37, 0.2);
}

.notices-section .notice-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.notices-section .notice-list li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #f0e7dc;
  border-radius: 9px;
  font-size: 0.73rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.notices-section .notice-list li:hover {
  border-color: rgba(137, 12, 37, 0.2);
  box-shadow: 0 7px 16px rgba(70, 25, 23, 0.08);
  transform: translateX(3px);
}

.notices-section .notice-list a {
  overflow: hidden;
  color: #30394a;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notices-section .notice-list time {
  color: #8a7278;
  font-size: 0.61rem;
  font-weight: 700;
  white-space: nowrap;
}

.notices-section .new {
  padding: 3px 6px;
  color: #fff;
  background: #890c25;
  border-radius: 999px;
  font-size: 0.5rem;
  letter-spacing: 0.4px;
}

.notices-section .message-panel {
  border-top: 4px solid #d7ad55;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.notices-section .message-panel:hover {
  box-shadow: 0 20px 42px rgba(70, 25, 23, 0.15);
  transform: translateY(-4px);
}

.notices-section .message-panel::before {
  content: "\f10d";
  position: absolute;
  right: 19px;
  bottom: 13px;
  color: rgba(137, 12, 37, 0.055);
  font: 900 3.2rem/1 "Font Awesome 7 Free";
  pointer-events: none;
}

.notices-section .message-panel .mini-label {
  display: block;
  min-height: 34px;
  color: #9b6c06;
  line-height: 1.35;
  text-align: center;
}

.notices-section .message-panel .principal-flex {
  position: relative;
  z-index: 1;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  margin: 12px 0 18px;
}

.notices-section .message-panel .principal-flex > div {
  width: 100%;
}

.notices-section .message-panel .principal-photo {
  width: 142px;
  height: 158px;
  flex: 0 0 158px;
  display: block;
  margin: 0 auto 3px;
  object-fit: cover;
  object-position: 55% 18%;
  border: 4px solid #fff5df;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(82, 18, 31, 0.2), 0 0 0 1px rgba(215, 173, 85, 0.32);
}

.notices-section .message-panel.vice-chancellor .principal-photo {
  object-position: 50% 14%;
}

.notices-section .principal p {
  color: #626d7d;
  line-height: 1.65;
  text-align: left;
}

.notices-section .principal strong {
  color: #710d23;
  line-height: 1.3;
  text-align: center;
}

.notices-section .principal small {
  margin-top: 3px;
  color: #8a7a80;
  line-height: 1.4;
  text-align: center;
}

.notices-section .text-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  color: #7a1025;
  background: #fff4df;
  border: 1px solid #eddbb7;
  border-radius: 7px;
  font-size: 0.65rem;
}

@media (max-width: 900px) {
  .notices-heading { align-items: flex-start; flex-direction: column; }
  .notices-section .updates-grid { gap: 18px; }
}

@media (max-width: 560px) {
  .notices-section { padding-top: 62px; padding-bottom: 62px; }
  .notices-heading { margin-bottom: 4px; }
  .notices-all { width: 100%; justify-content: center; }
  .notices-section .panel { padding: 19px; }
  .notices-section .notice-list li { grid-template-columns: auto minmax(0, 1fr); }
  .notices-section .notice-list time { grid-column: 2; }
  .notices-section .notice-list a { white-space: normal; }
  .notices-section .message-panel .principal-photo { width: 132px; height: 148px; flex-basis: 148px; }
}
