/* Date and Tools Section */
.tools {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  position: absolute;
  top: -13rem;
  left: 10px;
}

@media (min-width: 768px) {
  .tools {
    flex-direction: row;
    margin-bottom: 2rem;
  }
}

.date-display {
  display: flex;
  align-items: center;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-icon {
  font-size: 16px;
  margin-right: 0.5rem;
  color: #3b82f6;
}

.date-text {
  font-weight: 500;
  font-size: 0.7rem;
  color: #374151;
}

/* Notice Board */
.notice-container {
  position: relative;
}
.notice-board {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  margin: 0 -1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}

.notice-board::-webkit-scrollbar {
  display: none;
}

.notice-board {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Notice Card */
.notice-card {
  flex: 0 0 23rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  position: relative;
  scroll-snap-align: center;
  transition: all 0.3s ease;
  overflow: visible;
  padding: 10px;
}

/* .notice-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
} */

.pin {
  width: 20px;
  height: 20px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pin::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.card-content {
  padding: 1.5rem;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-urgent {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-update {
  background-color: #dcfce7;
  color: #166534;
}

.badge-reminder {
  background-color: #fef3c7;
  color: #92400e;
}

.time {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.time-icon {
  margin-right: 0.25rem;
  font-size: 0.875rem;
}

/* Card Body */
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.865rem;
}
.card-warning {
  color: #4b5563;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-style: italic;
}

.highlight {
  font-weight: 600;
  color: #eb2525;
}

/* Info Box */
.info-box {
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;

  .title-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.5rem;
  }

  i {
    font-size: 1.4rem;
  }

  h4 {
    margin: 0;
    font-size: 0.9rem;
  }
}

.info-box-urgent {
  background-color: #eff6ff;

  h4,
  i {
    color: #2563eb;
  }
}

.info-box-update {
  background-color: #ecfdf5;

  h4,
  i {
    color: #166534;
  }
}

.info-box-reminder {
  background-color: #fffbeb;

  h4,
  i {
    color: #92400e;
  }
}

.info-title {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.info-title-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.info-list {
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: #374151;
}

.info-list li {
  margin-bottom: 0.25rem;
  font-size: 0.865rem;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.posted-by {
  font-size: 0.7rem;
  color: #6b7280;
}

.action-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.action-btn:hover {
  color: #1e40af;
}

.action-btn-icon {
  margin-left: 0.25rem;
  font-size: 0.75rem;
}

.btn {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-primary {
  background-color: rgb(44, 169, 96);
  color: white;
}

.btn-primary:hover {
  background-color: rgb(30, 124, 69);
}

.btn-primary-icon {
  margin-left: 0.25rem;
  font-size: 1rem;
}

/* Dots Navigation */
.dots-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .dots-container {
    display: none;
  }
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  transform: scale(1.2);
  border-radius: 10px;
  width: 35px;
  background-color: red;
}

/* Urgent Animation */
.urgent {
  position: relative;
  border-left: 4px solid #ef4444;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
/* Navigation Arrows */
.nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #2563eb;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.nav-btn:hover {
  background-color: #eff6ff;
}

@media (min-width: 768px) {
  .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

#prev-btn {
  left: 0;
  transform: translate(-1rem, -50%);
}

#next-btn {
  right: 0;
  transform: translate(1rem, -50%);
}

.arrow {
  font-size: 12px;
}

/* Notice Board */
.parent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 120px);
  gap: 8px;
  position: relative;
}

.parent div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.div1 {
  grid-column: 1 / span 1;
  grid-row: 1 / span 2;
}

.div3 {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.div4 {
  grid-column: 1 / span 1;
  grid-row: 3 / span 2;
}

/* .div5 {
    grid-column: 4;
    grid-row: 1 / span 4;
} */
/* Load More Button - Perfectly Centered */
.g-load-more {
  border: none;
  cursor: pointer;
}

.parent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.4s ease;
  align-content: center;
}

.parent:hover {
  .parent-overlay {
    opacity: 1;
  }
}

/* Show button when JavaScript adds .show class */

/* News Slider */

/* News Cards Grid Container */
.news-grid {
  display: grid;
  gap: 25px;
  margin-bottom: 40px;
}

/* Large screens: 4 cards per row */
@media (min-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium screens: 2 cards per row (tablets) */
@media (min-width: 768px) and (max-width: 1199px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .parent-overlay {
    opacity: 1;
  }
}

/* Small screens: 1 card per row (mobile) */
@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .parent-overlay {
    opacity: 1;
  }
}

/* Card Styles */
.news-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.academic {
  background-color: #57cc99;
  color: white;
}

.sports {
  background-color: #ff9f1c;
  color: white;
}

.events {
  background-color: #e63946;
  color: white;
}

.achievements {
  background-color: #7209b7;
  color: white;
}

.announcements {
  background-color: #3a86ff;
  color: white;
}

.arts {
  background-color: #ff6b6b;
  color: white;
}

.technology {
  background-color: #4cc9f0;
  color: white;
}

.card-content h3 {
  font-size: 1.1rem;
  color: #1a5f7a;
  margin-bottom: 5px;
  line-height: 1.3;
  flex-grow: 1;
}

.card-excerpt {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.865rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.card-date {
  color: #888;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.card-date i {
  margin-right: 8px;
  color: #1a5f7a;
}

.read-more {
  display: inline-block;
  background-color: #1a5f7a;
  color: white;
  padding: 5px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  border: 2px solid #1a5f7a;
}

.read-more:hover {
  background-color: white;
  color: #1a5f7a;
}

/* View Toggle Buttons (Optional) */
.view-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px;
}

.toggle-btn {
  padding: 10px 25px;
  background-color: #e0e0e0;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn.active {
  background-color: #1a5f7a;
  color: white;
}

.toggle-btn:hover {
  background-color: #d0d0d0;
}

.toggle-btn.active:hover {
  background-color: #155a75;
}

/* School Header */
.school-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: #1a5f7a;
}

.school-logo {
  font-size: 2.865rem;
  margin-right: 20px;
}

.school-title h2 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.school-title p {
  color: #666;
  font-size: 1rem;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .school-header {
    flex-direction: column;
    text-align: center;
  }

  .school-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.3rem;
  }

  .view-toggle {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .read-more {
    align-self: stretch;
    text-align: center;
  }
}
