/* ==========================
   Global Reset and Base Styles
   ========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

body {
  background-color: #f5f0e7;
  line-height: 1.5;
  padding: 1.25rem; /* 20px */
  padding: 0; /* Changed for full-width elements */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ==========================
   Header Styles
   ========================== */
header {
  background-color: #288cd4;
  color: white;
  padding: 0.9375rem 1.25rem; /* 15px 20px */
  margin-bottom: 1.25rem; /* 20px */
  border-radius: 0.375rem; /* 6px */
}

.header-container {
  display: flex;
  justify-content: space-between;
  gap: 0.9375rem; /* 15px */
  flex-wrap: wrap;
}

.header-block {
  flex: 1 1 22%;
  background-color: #f57c00;
  padding: 0.9375rem; /* 15px */
  border-radius: 0.375rem; /* 6px */
  box-shadow: 0 0.125rem 0.3125rem rgb(0 0 0 / 0.1); /* 0 2px 5px */
  min-width: 11.25rem; /* 180px */
}

.header-block h3 {
  margin-bottom: 0.625rem; /* 10px */
  font-size: 1.1rem;
}

.header-block p {
  font-size: 0.9rem;
}

/* Login button inside header */
.header-block.login button {
  padding: 0.5rem 0.75rem; /* 8px 12px */
  font-size: 1rem;
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 0.25rem; /* 4px */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header-block.login button:hover {
  background-color: #e65100;
}

/* ==========================
   Announcement Banner
   ========================== */
.announcement-banner {
  background-color: #f3a42d;
  padding: 0.625rem 1.25rem; /* 10px 20px */
  border-radius: 0.375rem; /* 6px */
  overflow: hidden;
  margin-bottom: 1.5625rem; /* 25px */
  box-shadow: 0 0.125rem 0.375rem rgb(0 0 0 / 0.15); /* 0 2px 6px */
}

.announcements-wrapper {
  display: flex;
  gap: 3.125rem; /* 50px */
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}

.announcements-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.announcement {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1rem;
}

/* ==========================
   Main Content Styles
   ========================== */
main {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
}

.center-title {
  text-align: center;
  margin-bottom: 1.25rem; /* 20px */
}

/* Shared box styles */
.news-section,
.todo-section {
  background-color: white;
  padding: 1.875rem; /* 30px */
  margin-bottom: 1.875rem; /* 30px */
  border-radius: 0.625rem; /* 10px */
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.1); /* 0 4px 16px */
  min-height: 21.875rem; /* 350px */
}

.news-section h2,
.todo-section h2 {
  margin-bottom: 1.25rem; /* 20px */
  color: #005a9c;
  font-size: 1.8em; /* larger headings */
}

.news-section ul,
.todo-section ul {
  list-style-type: disc;
  padding-left: 1.5625rem; /* 25px */
}

.news-section li,
.todo-section li {
  margin-bottom: 0.75rem; /* 12px */
  font-size: 1.1rem;
}

/* Container around todo and new box: side by side */
.todo-and-box-container {
  display: flex;
  gap: 1.875rem;              /* 30px */
  max-width: 75rem; /* 1200px */
  margin: 0 auto 3.125rem; /* 50px */
  padding: 0 1.25rem; /* 20px */
}

/* Style for the new box on the right */
.new-box {
  background-color: white;
  padding: 1rem; /* 20px */
  border-radius: 0.625rem; /* 10px */
  box-shadow: 0 0.25rem 1rem rgba(152, 142, 142, 0.1); /* 0 4px 16px */
  flex: 1;
  min-height: 21.875rem; /* 350px */
  overflow-y: auto;    /* <-- and this */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-grow: 1;
}

/* Add some margin below the "Today's Announcements" header */
.new-box > h2.center-title {
  margin-bottom: 0.375rem; /* 6px */
}

/* Add small margin between each announcement title */
.announcement-list li {
  margin-top: 0.25rem; /* 4px */
  margin-bottom: 0.5rem; /* 8px */
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.625rem; /* 10px */
}

/* Make the todo section take about 2/3 of width */
.todo-section {
  flex: 1;
}

/* --- NEW ANIMATED DOT STYLES --- */
.announcement-list, .tasks-list {
  list-style: none; /* Remove default bullet points */
  padding: 0; /* Remove default padding */
  overflow-y: auto;
  flex-grow: 1;
}

.announcement-list li, .tasks-list li {
  position: relative;
  padding-left: 1.375rem; /* 22px */
  margin-bottom: 0.75rem; /* 12px */
}

/* Style for announcement dots ONLY */
.announcement-list li::before {
  content: ''; /* Create an empty pseudo-element for the dot */
  position: absolute;
  left: 0.25rem; /* 4px */
  top: 0.5rem; /* 8px */
  width: 0.5rem; /* 8px */
  height: 0.5rem; /* 8px */
  background-color: #333; /* Black dot */
  border-radius: 50%;
  transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.announcement-list li:hover::before {
  transform: scale(1.2); /* Make it slightly bigger */
  animation: rainbow-shine 2s infinite; /* Apply the new rainbow animation */
}

/* Keyframe animation for the rainbow shining effect */
@keyframes rainbow-shine {
  0%, 100% { background-color: #ffadad; box-shadow: 0 0 0.5rem #ffadad, 0 0 0.75rem #ffadad; } /* 8px, 12px */
  15% { background-color: #ffd6a5; box-shadow: 0 0 0.5rem #ffd6a5, 0 0 0.75rem #ffd6a5; }
  30% { background-color: #fdffb6; box-shadow: 0 0 0.5rem #fdffb6, 0 0 0.75rem #fdffb6; }
  45% { background-color: #caffbf; box-shadow: 0 0 0.5rem #caffbf, 0 0 0.75rem #caffbf; }
  60% { background-color: #9bf6ff; box-shadow: 0 0 0.5rem #9bf6ff, 0 0 0.75rem #9bf6ff; }
  75% { background-color: #a0c4ff; box-shadow: 0 0 0.5rem #a0c4ff, 0 0 0.75rem #a0c4ff; }
  90% { background-color: #bdb2ff; box-shadow: 0 0 0.5rem #bdb2ff, 0 0 0.75rem #bdb2ff; }
}

/* --- END OF NEW STYLES --- */

/* ==========================
   Login and Restriction Pages
   ========================== */
.login-page, 
.restriction-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
  padding: 1.25rem; /* 20px */
}

.login-container {
  background-color: white;
  padding: 2.5rem; /* 40px */
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 0.25rem 0.625rem rgba(0,0,0,0.1); /* 0 4px 10px */
  width: 25rem; /* 400px */
  max-width: 90vw;
}

.login-container h2 {
  margin-bottom: 1.5625rem; /* 25px */
  font-size: 1.8rem;
  color: #005a9c;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container button {
  width: 100%;
  padding: 0.75rem; /* 12px */
  margin-top: 0.625rem; /* 10px */
  font-size: 1.1rem;
  border-radius: 0.25rem; /* 4px */
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.login-container button {
  background-color: #f57c00;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1.25rem; /* 20px */
}

.login-container button:hover {
  background-color: #e65100;
}

/* Back to home button */
.back-home-button {
  position: absolute;
  top: 1.25rem; /* 20px */
  right: 1.25rem; /* 20px */
  background-color: #ffffff;
  color: #333;
  padding: 0.5rem 1rem; /* 8px 16px */
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 0.3125rem; /* 5px */
  font-size: 0.875rem; /* 14px */
  transition: background-color 0.3s, color 0.3s;
  z-index: 1000;
}

.back-home-button:hover {
  background-color: #007BFF;
  color: white;
  border-color: #007BFF;
}

/* ==========================
   Carousel Styles
   ========================== */
.carousel {
  position: relative;
  height: 37.5rem; /* 600px */
  margin: 1.875rem auto; /* 30px */
  overflow: hidden;
  border-radius: 0.75rem; /* 12px */
  box-shadow: 0 0 0.9375rem rgba(0,0,0,0.1); /* 0 0 15px */
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: none;
  position: relative;
}

.slide.active {
  display: block;
  height: 100%; 
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info {
  position: absolute;
  bottom: 1.25rem; /* 20px */
  left: 1.875rem; /* 30px */
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.9375rem; /* 15px */
  border-radius: 0.3125rem; /* 5px */
}

.more-info {
  color: #ffdd00;
  text-decoration: underline;
}

/* Carousel navigation buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  padding: 0.75rem; /* 12px */
  cursor: pointer;
  font-size: 1.5rem; /* 24px */
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s ease;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.6);
}

.prev {
  left: 0.9375rem; /* 15px */
}

.next {
  right: 0.9375rem; /* 15px */
}

/* Carousel dots navigation */
.dots {
  position: absolute;
  bottom: 0.9375rem; /* 15px */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.dot {
  height: 0.75rem; /* 12px */
  width: 0.75rem; /* 12px */
  margin: 0 0.25rem; /* 0 4px */
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #005a9c;
}

/* ==========================
   Navbar Styles
   ========================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #14328C, #1747A6, #1B57A6, #2E6EA6, #F2F2F2);
  padding: 0.625rem 1.25rem; /* 10px 20px */
  color: white;
}

.navbar-left .logo {
  height: 4.375rem; /* 70px */
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* 12px */
  margin-right: 1.25rem; /* 20px */
}

.user-info {
  font-weight: bold;
  color: #333;
}

.navbar-right a {
  color: white;
  margin-left: 1.25rem; /* 20px */
  font-size: 1.25rem; /* 20px */
  text-decoration: none;
  transition: transform 0.2s ease;
}

.navbar-right a:hover {
  transform: scale(1.2);
  color: #ffdd00;
}

/* =================================
   NEW: Clean Gradient Header
   ================================= */

/* Main header container */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9375rem 1.875rem; /* 15px 30px */
  background: linear-gradient(to right, #14328C, #1747A6, #1B57A6, #2E6EA6, #F2F2F2);
  color: white;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2); /* 0 2px 8px */
}

/* Logo image styling */
.top-header .logo img {
  height: 3.125rem; /* 50px */
  display: block;
}

/* Container for user info and icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.5625rem; /* 25px */
}

/* Style for the 'user: guest' text */
.nav-icons span {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: #f0f0f0; /* Slightly off-white for a softer look */
  text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.2); /* 1px 1px 2px */
}

/* Style for the icon links */
.nav-icons a {
  color: white;
  text-decoration: none;
  font-size: 1.375rem; /* 22px */
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out; /* Smooth hover effect */
}

/* Change icon color and size on hover */
.nav-icons a:hover {
  color: #ffdd00; /* Bright yellow for contrast on hover */
  transform: scale(1.15); /* Slightly enlarge icon on hover */
}

/* Remove default margin from Font Awesome icons */
.nav-icons a i {
  margin-right: 0;
}

/* ==========================
   Quick Links Section
   ========================== */

.quick-links {
  background-color: #1747A6; /* Changed from #005a9c (blue) to purple */
  width: 100vw;
  padding: 2.5rem 3.75rem; /* 40px 60px */
  color: white;
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
}

.quick-links h2 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 1.875rem; /* 30px */
  color: #ffdd00;
  text-align: left;
  padding-left: 1.25rem; /* 20px */
}

.quick-links-container {
  max-width: 62.5rem; /* 1000px */
  margin: 0 auto;
  padding: 0 1.25rem; /* 0 20px */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; /* 20px */
  text-align: center;
}

.quick-link {
  background-color: white;
  color: #800080; /* Optional: updated text/icon color to match */
  text-decoration: none;
  border-radius: 0.75rem; /* 12px */
  padding: 1.875rem 1.25rem; /* 30px 20px */
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quick-link i {
  font-size: 2rem; /* 32px */
  margin-bottom: 0.625rem; /* 10px */
}

.quick-link span {
  font-size: 1rem; /* 16px */
  font-weight: bold;
}

.quick-link:hover {
  transform: translateY(-0.3125rem); /* -5px */
  box-shadow: 0 0.625rem 1.25rem rgba(0,0,0,0.2); /* 0 10px 20px */
  background-color: #f3e0ff; /* light purple on hover */
}

/* === Rainbow Hover === */
.rainbow-hover {
  cursor: pointer;
  font-weight: bold;
  color: black;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.rainbow-hover:hover {
  animation: rainbowText 2s linear infinite;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet,
    red
  );
  background-size: 400% 100%;
}

/* === Rainbow Glow Animation === */
@keyframes rainbowGlow {
  0% { text-shadow: 0 0 0.625rem red; } /* 10px */
  25% { text-shadow: 0 0 0.625rem orange; }
  50% { text-shadow: 0 0 0.625rem yellow; }
  75% { text-shadow: 0 0 0.625rem lime; }
  100% { text-shadow: 0 0 0.625rem blue; }
}

/* === Rainbow Animated Text === */
@keyframes rainbowText {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* === Popup === */
.announcement-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 1.875rem; /* 30px */
  border-radius: 0.625rem; /* 10px */
  max-width: 37.5rem; /* 600px */
  box-sizing: border-box;
  width: 90%;
  position: relative;
  box-shadow: 0 0 1.5625rem rgba(0,0,0,0.4); /* 25px */
  animation: fadeIn 0.3s ease-out;
  max-height: 70vh; /* limits height to 70% of viewport */
  overflow-y: auto; /* adds scroll bar if needed */
  padding-right: 0.625rem; /* 10px */
}

/* === Download Button === */
.download-btn {
  display: inline-block;
  margin-top: 0.9375rem; /* 15px */
  padding: 0.625rem 1rem; /* 10px 16px */
  background: #3f3de6; /* Orange tone */
  color: white;
  border-radius: 0.375rem; /* 6px */
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn:hover {
  background: #2339e6; /* Slightly darker on hover */
  transform: translateY(-0.125rem); /* -2px */
}

.download-btn:active {
  transform: translateY(0); /* Reset when clicked */
}

/* --------------------------------------------------
   CLEAN PREVIEW BUTTON
-------------------------------------------------- */
.preview-btn {
  display: inline-block;
  margin-top: 0.9375rem; /* 15px */
  padding: 0.625rem 1rem; /* 10px 16px */
  background: #e6a83e; /* Blue tone to match download button */
  color: white;
  border-radius: 0.375rem; /* 6px */
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;

  /* --- Add these lines for perfect alignment --- */
  border: none;             /* Removes the default button border/outline */
  font-family: inherit;     /* Forces it to use the page's font */
  font-size: inherit;       /* Forces it to use the same text size */
  cursor: pointer;          /* Shows a pointer hand on hover */
}

.preview-btn:hover {
  background: #df9d1a; /* Slightly darker on hover */
  transform: translateY(-0.125rem); /* -2px */
}

.preview-btn:active {
  transform: translateY(0); /* Reset when clicked */
}

/* --------------------------------------------------
   VIDEO PREVIEW BUTTON
-------------------------------------------------- */
.video-preview-btn {
  display: inline-block;
  margin-top: 0.9375rem; /* 15px */
  padding: 0.625rem 1rem; /* 10px 16px */
  background: #d335be; /* Blue tone to match download button */
  color: white;
  border-radius: 0.375rem; /* 6px */
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;

  /* --- Add these lines for perfect alignment --- */
  border: none;             /* Removes the default button border/outline */
  font-family: inherit;     /* Forces it to use the page's font */
  font-size: inherit;       /* Forces it to use the same text size */
  cursor: pointer;          /* Shows a pointer hand on hover */
}

.video-preview-btn:hover {
  background: #da10bc; /* Slightly darker on hover */
  transform: translateY(-0.125rem); /* -2px */
}

.video-preview-btn:active {
  transform: translateY(0); /* Reset when clicked */
}

.file-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem; /* 10px */
    align-items: center;
    border-top: 1px solid #eee;
    margin-top: 0.9375rem; /* 15px */
    padding-top: 0.9375rem; /* 15px */
}

.file-preview-modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.file-preview-content {
  background: white;
  padding: 0.625rem; /* 10px */
  width: 90%;
  max-width: 56.25rem; /* 900px */
  border-radius: 0.625rem; /* 10px */
  position: relative;
}

.close-preview {
  position: absolute;
  top: 0.3125rem; /* 5px */
  right: 0.625rem; /* 10px */
  font-size: 1.5rem; /* 24px */
  cursor: pointer;
  color: white;
}

.close-vid-preview {
  position: absolute;
  top: 0.3125rem; /* 5px */
  right: 0.625rem; /* 10px */
  font-size: 1.5rem; /* 24px */
  cursor: pointer;
  color: black;
  z-index: 10;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.center-title {
    text-align: center;
}

.new-sticker {
    background: red;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 0.125rem 0.375rem; /* 2px 6px */
    border-radius: 0.3125rem; /* 5px */
    margin-left: 0.5rem; /* 8px */

    display: inline-block;
    animation: blink 1.5s linear infinite;
    user-select: none;
    vertical-align: middle;
}

/* Blinking animation */
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Class to hide the sticker */
.new-sticker.hidden {
  display: none !important;
}

/* Announcement Type Badges */
.type-badge {
  display: inline-block;
  padding: 0.1875rem 0.5rem; /* 3px 8px */
  font-size: 0.75rem; /* 12px */
  font-weight: bold;
  color: white;
  border-radius: 0.75rem; /* 12px */
  margin-left: 0.5rem; /* 8px */
  text-transform: capitalize;
}

/* Badge Colors */
.type-badge.academics { background-color: #007BFF; }        /* Blue */
.type-badge.activity { background-color: #FF69B4; }         /* Pink */
.type-badge.well-being { background-color: #FFA500; }       /* Orange */
.type-badge.media-development { background-color: #800080; }/* Purple */
.type-badge.finance { background-color: #FFD700; color: black; } /* Yellow */
.type-badge.data-management { background-color: #808080; } /* Gray */
.type-badge.general { background-color: #28A745; }          /* Green */
.type-badge.event { background-color: #e76b77; }          /* Green */
.type-badge.recruitment { background-color: #93e1ea; }          /* Green */
.type-badge.other { background-color: #53e061; }          /* Green */


/* Two-column main layout */
.main-columns {
  display: flex;
  gap: 1.25rem; /* 20px */
  margin-bottom: 1.25rem; /* 20px */
  align-items: stretch; /* match heights */
}

/* News column styling */
.news-column {
  flex: 1;
}

.vertical-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
  overflow-y: auto;
  height: 37.5rem; /* 600px */
}

.news-item {
  background: white;
  padding: 0.9375rem; /* 15px */
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.1); /* 0 2px 6px */
}

/* Side-by-side layout for news & announcements */
.news-and-announcements {
  display: flex;
  gap: 1.875rem; /* 30px */
  align-items: stretch; /* This will now work correctly */
  margin-bottom: 1.875rem; /* 30px */
}

/* Left news column */
.news-and-announcements .carousel {
  flex: 1; /* Take up half the space */
  aspect-ratio: 4 / 3; /* Maintain shape without a fixed height */
  border-radius: 0.75rem; /* 12px */
  overflow: hidden;
  box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.1); /* 0 4px 15px */
  margin: 0; /* <-- Add this line to fix the alignment */
}

.news-and-announcements .carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Right announcements column */
.news-and-announcements .new-box {
  flex: 1; /* Take up the other half */
  display: flex; /* Make the box a flex container */
  flex-direction: column; /* Stack its children (title and list) vertically */
}

/* Make the list inside the box scrollable, not the box itself */
.new-box .announcement-list {
    flex-grow: 1; /* This tells the list to grow and fill the available space */
    overflow-y: auto; /* Add a scrollbar only if the content is too long */
}

/* Full width tasks section */
.tasks-box {
  margin-top: 1.875rem; /* 30px */
  padding: 1.25rem; /* 20px */
  padding-top: 0.9375rem; /* 15px */
  padding-bottom: 0.9375rem; /* 15px */
  background: #fff;
  border-radius: 0.5rem; /* 8px */
  box-shadow: 0 0.125rem 0.3125rem rgba(0,0,0,0.1); /* 0 2px 5px */
  margin-bottom: 1.875rem; /* 30px */
}

.tasks-list {
  list-style: none;
  padding: 0;
}

.tasks-list li {
  padding: 0.5rem 0; /* 8px 0 */
  border-bottom: 1px solid #ddd;
}

/* --- User Content Layout --- */
.user-content-container {
    display: flex;
    justify-content: center;
    padding: 1.25rem; /* 20px */
}

.user-card {
    background-color: #fff;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05); /* 0 4px 8px */
    padding: 1.875rem; /* 30px */
    width: 100%;
    max-width: 37.5rem; /* 600px */
}

.user-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem; /* 10px */
    color: #0056b3;
    text-align: center;
}

.user-card p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.25rem; /* 20px */
    text-align: center;
}

.user-form label {
    display: block;
    margin-bottom: 0.3125rem; /* 5px */
    font-weight: bold;
    color: #333;
}

.user-form input,
.user-form textarea,
.user-form select {
    width: 100%;
    padding: 0.625rem; /* 10px */
    margin-bottom: 0.9375rem; /* 15px */
    border: 1px solid #ccc;
    border-radius: 0.25rem; /* 4px */
    font-size: 1rem; /* 16px */
}

.user-form textarea {
    resize: vertical;
}

.user-form button {
    width: 100%;
    padding: 0.75rem; /* 12px */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.3125rem; /* 5px */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-form button:hover {
    background-color: #0056b3;
}

.preview-video-btn {
    background-color: #5bc0de;
    color: white;
    padding: 0.5rem 0.75rem; /* 8px 12px */
    border: none;
    border-radius: 0.3125rem; /* 5px */
    cursor: pointer;
    font-size: 0.875rem; /* 14px */
    margin: 0.3125rem; /* 5px */
    transition: background-color 0.2s;
}
.preview-video-btn:hover {
    background-color: #31b0d5;
}
.preview-video-btn i {
    margin-right: 0.3125rem; /* 5px */
}

/* ============================================= */
/* == STYLES FOR PENDING ANNOUNCEMENT CARDS == */
/* ============================================= */

/* The main container for each pending item */
.pending-announcement-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem; /* 12px */
    padding: 1.25rem; /* 20px */
    margin-bottom: 1.5625rem; /* 25px */
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08); /* 0 4px 12px */
    transition: box-shadow 0.3s ease;
}

.pending-announcement-card:hover {
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.12); /* 0 6px 16px */
}

/* Header section of the card */
.pending-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.9375rem; /* 15px */
    margin-bottom: 0.9375rem; /* 15px */
}

.pending-card-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #333;
}

/* Body section for the message/content */
.pending-card-body p {
    color: #555;
    line-height: 1.6;
}

/* Footer for submitter info and actions */
.pending-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem; /* 20px */
    padding-top: 0.9375rem; /* 15px */
    border-top: 1px solid #f0f0f0;
}

.pending-card-footer .submitted-by-info {
    font-size: 0.9em;
    color: #777;
}

/* Styling for the action buttons */
.approval-actions .approve-btn,
.approval-actions .deny-btn {
    padding: 0.625rem 1.25rem; /* 10px 20px */
    border: none;
    border-radius: 0.5rem; /* 8px */
    color: white;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.approval-actions .approve-btn {
    background: linear-gradient(45deg, #28a745, #218838); /* Green gradient */
}

.approval-actions .deny-btn {
    background: linear-gradient(45deg, #dc3545, #c82333); /* Red gradient */
    margin-left: 0.625rem; /* 10px */
}

.approval-actions .approve-btn:hover,
.approval-actions .deny-btn:hover {
    opacity: 0.85;
}

/* ============================================= */
/* == RESPONSIVE MEDIA QUERIES (GLOBAL) == */
/* ============================================= */

/* For Tablets (e.g., iPads) */
@media (max-width: 64rem) { /* 1024px */
    .header-block {
        flex-basis: 48%;
    }
    main {
        padding: 0 1.5625rem; /* 25px */
    }
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9375rem; /* 15px */
    }
    .navbar-left, .navbar-right {
        flex-basis: 45%;
    }
    .navbar-center {
        flex-basis: 100%;
        order: 2;  /* keep it in the middle */
        justify-content: center;
    }
    .news-and-announcements {
        flex-direction: column;
    }
    .quick-links-container {
        grid-template-columns: repeat(3, minmax(9.375rem, 1fr)); /* 150px */
    }
}

/* For Mobile Phones */
@media (max-width: 48rem) { /* 768px */
    body {
        padding: 0;
    }
    header, main {
        padding: 0.9375rem; /* 15px */
        margin-bottom: 0.9375rem; /* 15px */
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.4em; }
    .header-container, .navbar {
        flex-direction: column;
    }
    .header-block {
        flex-basis: 100%;
    }
    .navbar-left, .navbar-center, .navbar-right {
        flex-basis: auto;
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
    .navbar-right {
        margin-top: 0.625rem; /* 10px */
    }
    .new-box, .tasks-box, .calendar-box, .past-box {
        padding: 1.25rem; /* 20px */
        display: flex;
        flex-direction: column;
    }
    .carousel {
        aspect-ratio: 3 / 4; /* This creates the portrait view */
        height: auto;        /* This is important! Lets aspect-ratio work. */
    }
    .quick-links-container {
        grid-template-columns: 1fr; 
        gap: 0.9375rem; /* 15px */
    }
    .quick-link span {
        font-size: 0.875rem; /* 14px */
    }
    .top-header {
        flex-direction: column;
        padding: 0.9375rem; /* 15px */
        gap: 0.9375rem; /* 15px */
    }
    .nav-icons {
        width: 100%;
        justify-content: space-around;
        gap: 0.9375rem; /* 15px */
    }
    .nav-icons span {
        font-size: 0.875rem; /* 14px */
    }
    .nav-icons a {
        font-size: 1.25rem; /* 20px */
    }
    .login-container {
        width: 90%;
        padding: 1.5rem; /* 24px */
        margin-top: 1rem; /* Add some space from the top */
    }
}