/* Tab notification badge styles */
.tab-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: none; /* shown when there are new items */
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
}



/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body, html {
    overflow-x: hidden;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #D1E1F5;
    color: #0a1a3a;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centers vertically */
  min-height: calc(100vh - 200px); /* adjusts for navbar + footer */
}


/* Navbar */
  .navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 7.9%;
    background: #0A2C59;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.navbar img {
  height: 4vh;
  border-radius: 50%;
}

.navbar .title {
    color: white;
    text-decoration: none;
  font-size: 1rem !important;
  font-weight: bold;
  margin-left: 10px;
}

.nav-btn{
  text-decoration: none;
  margin: 0 10px;
}

.navbar-center {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.bell {
    color: white;
    cursor: pointer;
    margin-top: 0;
    margin-right: 5px;
    font-size: 1rem;
    line-height: 1;
}

.prof {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.navbar-right {
  display: flex;
  gap: 8px;
  font-size: 20px;
}

.navbar-right a {
  text-decoration: none;
}

.nav-btn {
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

.nav-btn:hover, .nav-btn.active {
    background: #1e4e9e;
    color: #fff;
}

.kk-btns{
  display: flex;
  justify-content: flex-end;
}

/* Hamburger Icon */
.navbar-hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 10px;
}

.announcement{
  font-style: 2rem;
}

/* Notification badge on top of bell icon */
.notif {
  position: relative;
  display: inline-block;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: none; /* shown when there are new items */
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 1048px) {
    .navbar-center {
        display: none !important;
    }
    .navbar-hamburger {
        display: inline-block !important;
    }
}
@media (min-width: 1049px) {
    .navbar-center {
        display: flex !important;
    }
    .navbar-hamburger {
        display: none !important;
    }
}

/* Mobile navbar optimization */
@media (max-width: 768px) {
  .notif-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
  .navbar {
    padding: 10px 15px;
  }
  
  .navbar img {
    height: 32px;
  }
  
  .navbar .title {
    font-size: 14px;
    margin-left: 8px;
  }
  
  .navbar-hamburger {
    font-size: 1.5rem;
    margin-right: 5px;
    display: flex;
    align-items: center;
  }
  
  .bell {
    font-size: 18px;
    margin-right: 3px;
    margin-top: 0;
    display: flex;
    align-items: center;
  }
  
  .navbar-right {
    gap: 0.01%;
    font-size: 18px;
    display: flex;
    align-items: center;
  }
  
  .navbar-right .prof {
    display: flex;
    align-items: center;
    margin-top: 0;
  }
  
    .announcement-heading-container {
        width: 90%;
        padding: 15px;
        margin-top: 13% !important;
    }

    .announcement-heading-container h2 {
        font-size: 1.5rem;
    }

    .announcement-container {
        width: 90%;
        padding: 15px;
    }

    .announcement-table {
        table-layout: auto; /* Allow table to adjust on mobile */
    }
    
    .announcement-table th:nth-child(1),
    .announcement-table td:nth-child(1) {
        width: 30%;
    }

    .announcement-table th:nth-child(2),
    .announcement-table td:nth-child(2) {
        width: 25%;
    }

    .announcement-table th:nth-child(3),
    .announcement-table td:nth-child(3) {
        width: 25%;
    }

    .announcement-table th:nth-child(4),
    .announcement-table td:nth-child(4) {
        width: 20%;
    }

    /* utility hidden class used by JS to toggle visibility */
    .hidden { display: none !important; }

    .announcement-table th, 
    .announcement-table td {
        font-size: 14px;
        padding: 10px 5px;
    }

    .announcement-table a {
        font-size: 13px;
    }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
  }
}

.navbar-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 16px;
  width: 220px;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  z-index: 2000;
  padding: 18px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(20, 61, 119, 0.18);
  border: 1px solid #e3eaf3;
}

.navbar-mobile-menu.active {
  display: flex !important;
}

.navbar-mobile-menu .nav-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 8px;
  color: #143d77;
  background: none;
  text-align: left;
  border: none;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.navbar-mobile-menu .nav-btn:last-child {
  margin-bottom: 0;
}

.navbar-mobile-menu .nav-btn:hover {
  background: #eaf3fa;
  color: #1e4e9e;
}

/* Announcement Heading Container */
.announcement-heading-container {
    max-width: 1100px;
    width: 45%;
    margin: 8% auto 20px auto; 
    padding: 20px 25px;
    /* background: #fff;  */
    color: #000;
    border-radius: 10px;
    text-align: center;
    /* box-shadow: 0 6px 12px rgba(0,0,0,0.1); */
}

.announcement-heading-container h2 {
    font-size:  1.5rem;
    font-weight: 700;
}

.announcement-heading-container h2::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 60px; /* adjust to match navbar height */
  pointer-events: none;
  background: linear-gradient(to bottom, #eaf2fb 80%, transparent 100%);
  z-index: 900; /* below navbar (1000) but above page content */
}

/* Announcement Table Container */
.announcement-container {
  max-width: 1100px;
  width: 90%;
  margin: 20px auto 50px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.10);
  padding: 0; /* Remove padding to align the table properly */
  /* Allow the container to scroll when there are many announcements.
     Use a viewport-based max-height so the list fits on most screens. */
  max-height: calc(100vh - 260px);
  overflow: auto; /* Enable scrolling when content exceeds max-height */
}

/* Table Styling */
.announcement-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed; /* Ensure equal column widths */
}

.announcement-table thead {
  position: sticky;
  top: 0; /* Stick the header to the top */
  background-color: #0A2C59; /* Header background color */
  color: #fff; /* Header text color */
  z-index: 1; /* Ensure the header stays above the body content */
}

.announcement-table th {
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid #e2e8f0;
}

.announcement-table tbody {
  display: block;
  overflow-y: auto; /* Enable vertical scrolling */
  /* Limit the scrolling area so the header stays visible and the
     table doesn't grow beyond the viewport. */
  max-height: 60vh;
}

/* Cards layout (mobile) container created dynamically by JS */
.announcement-cards {
  display: block;
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px;
}

.announcement-table tbody.no-scroll {
  max-height: none; /* Remove height restriction */
  overflow-y: visible; /* Disable scrolling */
}

.announcement-table tr {
  display: table; /* Ensure rows behave like table rows */
  width: 100%; /* Ensure rows span the full width */
}

.announcement-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  word-wrap: break-word;
}

/* Scrollbar Styling */
.announcement-table tbody::-webkit-scrollbar {
  width: 8px;
}

.announcement-table tbody::-webkit-scrollbar-thumb {
  background-color: #0A2C59;
  border-radius: 4px;
}

.announcement-table tbody::-webkit-scrollbar-track {
  background-color: #e2e8f0;
}

/* Equal height for announcement table rows */
.announcement-table tr {
  height: 70px; /* Adjust as needed */
  vertical-align: middle;
}

/* Pinned announcement styling */
.announcement-table tr.pinned-row {
  background-color: #fff8e1; /* Light golden background */
  border-left: 4px solid #d4af37; /* Golden left border */
  font-weight: 500; /* Slightly bolder text */
}

.announcement-table tr.pinned-row:hover {
  background-color: #fff3cd; /* Darker golden background on hover */
}

/* Modal description styling */
.description-container {
  margin-top: 20px;
}

.description-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #143d77;
  margin-bottom: 8px;
}

.description-box {
  width: 100%;
  min-height: 120px;
  max-height: 200px; /* Set maximum height */
  padding: 15px;
  border: 1px solid #bcd4ec;
  border-radius: 8px;
  background-color: #f5faff;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
  white-space: pre-wrap; /* Preserve line breaks */
  word-wrap: break-word;
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Hide horizontal scroll */
}

.description-box:focus {
  outline: none;
  border: 1.5px solid #143d77;
  background-color: #eaf3fa;
  box-shadow: 0 0 0 2px rgba(20, 61, 119, 0.1);
}


.announcement-table td {
  color: #444;
  font-size: 15px;
}


/* Define specific column widths */
.announcement-table th:nth-child(1),
.announcement-table td:nth-child(1) {
    width: 35%;
    text-align: left;
}

.announcement-table th:nth-child(2),
.announcement-table td:nth-child(2) {
    width: 25%;
    text-align: center;
}

.announcement-table th:nth-child(3),
.announcement-table td:nth-child(3) {
    width: 25%;
    text-align: center;
}

.announcement-table th:nth-child(4),
.announcement-table td:nth-child(4) {
    width: 15%;
    text-align: center;
}

/* Title and Status Badge in Table */
.announcement-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0A2C59;
    font-weight: 500;
    padding-right: 1rem; /* Add padding to prevent text from touching the edge */
}

.announcement-title i {
    color: #0A2C59;
    font-size: 0.875rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.upcoming {
    background: #e0f2fe;
    color: #0369a1;
}

/* View Button */
.view-btn {
    background: none;
    border: none;
    color: #0A2C59;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto;
}

.view-btn:hover {
    background: #f1f5f9;
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 50;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 32rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    color: #0A2C59;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #0A2C59;
}

.modal-body {
    padding: 1.5rem;
}

.modal-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.info-item i {
    color: #0A2C59;
}

.description {
    color: #334155;
    line-height: 1.625;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .modal {
        margin: 1rem;
    }
    
    .modal-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}


/* Hide event date column on very small screens (480px and below) */
@media (max-width: 480px) {
  .main-content{
    justify-content: flex-start;
    margin-top: 15% !important;
  }
  .announcement-tabs{
    gap: 5px !important;
  }
  .announcement-tabs1, .announcement-tabs2{
    gap: 0 ;
    margin: 0 3px 0 0;
  } 
  .tab-btn{
    font-size: 0.8rem !important;
  padding: 10px 20px !important;
  }
    .announcement-table th:nth-child(2),
    .announcement-table td:nth-child(2) {
        display: none; /* Hide event date column */
    }

    /* Adjust remaining column widths */
    .announcement-table th:nth-child(1),
    .announcement-table td:nth-child(1) {
        width: 50%; /* Title column gets more space */
    }

    .announcement-table th:nth-child(3),
    .announcement-table td:nth-child(3) {
        width: 30%; /* Status column */
    }

    .announcement-table th:nth-child(4),
    .announcement-table td:nth-child(4) {
        width: 20%; /* Actions column */
    }
    
  .footer {
    padding: 30px 20px 15px;
  }

  .footer-left h3 {
    font-size: 18px;
  }

  .footer-left p {
    font-size: 14px;
  }

  .footer-middle h4,
  .footer-right h4 {
    font-size: 15px;
  }

  .footer-middle ul li a,
  .footer-right ul li a {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

/* Responsive: Stack announcement cards and buttons on small screens */
@media (max-width: 600px) {
  .main-content{
    justify-content: flex-start;
    margin-top: 8%;
  }
  .announcement-heading-container {
    width: 88%;
    padding: 1%;
    margin: 1vh auto 10px auto;
  }

  .announcement-container {
    width: 88%;
    padding: 10px;
    margin: 10px auto 30px auto;
  }

  .announcement-card {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 16px;
    background: #dde9f2;
    display: block;
  }

  .announcement-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .announcement-card p,
  .announcement-card small {
    font-size: 0.95rem;
  }

  .announcement-card .pinned {
    font-size: 1rem;
    margin-left: 6px;
  }

  .announcement-card .card-header .title span {
    font-size: 0.95rem;
    font-weight: bold;
  }
  .announcement-card .card-header .title i {
    font-size: 0.95rem;
  }
  .announcement-card .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  .announcement-card .card-meta {
    font-size: 0.75rem;
    margin-top: 8%;
    
  }
  .announcement-card .card-meta .meta-row i {
    font-size: 0.9rem;
    margin-right: 6px;
  }

  .announcement-card button,
  .announcement-card .view-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 0.95rem;
    padding: 8px 0;
    border-radius: 6px;
  }

  .announcement-table th,
  .announcement-table td {
    font-size: 12.5px;
  }
  
  .tab-notif-badge {
    top: 0px;
    right: 0px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 4px;
  }
    .navbar-left .title {
        font-size: 1rem;
    }
  .verification-strip {
    font-size: 14px;
    padding: 10px 15px;
    gap: 8px;
    width: 92%;
    max-width: 95vw;
    top: calc(1rem + 56px); /* adjust if navbar is shorter on mobile */
    border-radius: 10px;
  }
  
  .verification-strip i {
    font-size: 18px;
    margin-right: 3px;
  }
  
  .verification-strip a {
    font-size: 13px;
    padding: 3px 8px;
  }
}

.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 16px;
    width: 240px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    z-index: 2000;
    padding: 18px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(20, 61, 119, 0.18);
    border: 1px solid #e3eaf3;
}
.navbar-mobile-menu.active {
    display: flex !important;
}
.navbar-mobile-menu .nav-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 8px;
    color: #143d77;
    background: none;
    text-align: left;
    border: none;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}
.navbar-mobile-menu .nav-btn:last-child {
    margin-bottom: 0;
}
.navbar-mobile-menu .nav-btn:hover {
    background: #eaf3fa;
    color: #1e4e9e;
}

.announcement-table {
  margin-top: 0 !important;
}

/* Footer */
.footer {
  flex-shrink: 0;
  background: #0A2C59;
  color: #fff;
  padding: 40px 60px 20px;
  margin-top: auto; /* Pushes footer to bottom */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-left h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 15px;
  line-height: 1.5;
  color: #cfd9e8;
}

.footer-middle h4,
.footer-right h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-middle ul li,
.footer-right ul li {
  margin-bottom: 8px;
}

.footer-middle ul li a,
.footer-right ul li a {
  text-decoration: none;
  color: #cfd9e8;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-middle ul li a:hover,
.footer-right ul li a:hover {
  color: #ffffff;
}

.footer-right ul li i {
  margin-right: 8px;
  font-size: 15px;
}

.footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #cfd9e8;
}


.verification-strip {
  position: fixed;
  top: calc(1rem + 70px); /* 1rem navbar offset + navbar height */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  background: linear-gradient(135deg, #0A2C59 0%, #143d77 100%, #1e4e9e 50%);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(10, 44, 89, 0.20), 0 2px 8px rgba(10, 44, 89, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1100;
  margin-top: 10px;
  margin-bottom: 10px;
  animation: slideDown 0.4s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.verification-strip:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 44, 89, 0.25), 0 4px 12px rgba(10, 44, 89, 0.18);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.verification-strip a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.verification-strip a:hover {
  color: #fff;
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.verification-strip i {
  color: #ffd700;
  font-size: 20px;
  margin-right: 4px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}
.disabled {
  pointer-events: none; /* Prevent clicks */
  opacity: 0.5; /* Make the button look disabled */
  cursor: not-allowed; /* Change cursor to indicate disabled state */
}

.announcement-card .card-header .title {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between title and status badge */
  font-size: 1rem;
  font-weight: 500;
  color: #0A2C59;
}

.announcement-card .card-header .title .status-badge {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  background: #e0f2fe;
  color: #0369a1;
  margin-left: auto; /* Align badge to the right */
}

.announcement-tabs, .announcement-tabs1, .announcement-tabs2 {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.tab-btn {
  background: #eaf3fa;
  color: #143d77;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active {
  background: #0A2C59;
  color: #fff;
}
.tab-btn:hover:not(.active) {
  background: #d1e1f5;
}


/* General tab - unread announcements highlight in light blue */
.announcement-table tbody tr.announcement-notread {
  background-color: #e3f2fd !important;
}

.announcement-table tbody tr.announcement-read {
  background-color: #ffffff !important;
}

/* Cards - General tab unread highlight */
.announcement-card.announcement-notread {
  background-color: #e3f2fd !important;
}

.announcement-card.announcement-read {
  background-color: #ffffff !important;
}

/* For You tab - override with color coding (unread darker, read lighter) */
.announcement-table tbody tr.announcement-row-cycle-open.announcement-notread {
  background-color: #c8e6c9 !important;
}

.announcement-table tbody tr.announcement-row-cycle-open.announcement-read {
  background-color: #e8f5e9 !important;
}

.announcement-table tbody tr.announcement-row-cycle-closed.announcement-notread {
  background-color: #ffcdd2 !important;
}

.announcement-table tbody tr.announcement-row-cycle-closed.announcement-read {
  background-color: #ffebee !important;
}

.announcement-table tbody tr.announcement-row-rejected.announcement-notread {
  background-color: #ffcdd2 !important;
}

.announcement-table tbody tr.announcement-row-rejected.announcement-read {
  background-color: #ffebee !important;
}

.announcement-table tbody tr.announcement-row-approved.announcement-notread {
  background-color: #c8e6c9 !important;
}

.announcement-table tbody tr.announcement-row-approved.announcement-read {
  background-color: #e8f5e9 !important;
}

/* Cards - For You tab */
.announcement-card.announcement-card-cycle-open.announcement-notread {
  background-color: #c8e6c9 !important;
}

.announcement-card.announcement-card-cycle-open.announcement-read {
  background-color: #e8f5e9 !important;
}

.announcement-card.announcement-card-cycle-closed.announcement-notread {
  background-color: #ffcdd2 !important;
}

.announcement-card.announcement-card-cycle-closed.announcement-read {
  background-color: #ffebee !important;
}

.announcement-card.announcement-card-rejected.announcement-notread {
  background-color: #ffcdd2 !important;
}

.announcement-card.announcement-card-rejected.announcement-read {
  background-color: #ffebee !important;
}

.announcement-card.announcement-card-approved.announcement-notread {
  background-color: #c8e6c9 !important;
}

.announcement-card.announcement-card-approved.announcement-read {
  background-color: #e8f5e9 !important;
}

/* Expired tab - all announcements grey */
.announcement-table tbody tr.expired-tab {
  background-color: #f5f5f5 !important;
  border-left: 4px solid #9e9e9e;
}

.announcement-card.expired-tab {
  background-color: #f5f5f5 !important;
  border-left: 5px solid #9e9e9e;
}