/* 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: -4.5rem;
  left: 10px;
}

@media (min-width: 768px) {
  .tools {
    flex-direction: row;
    margin-bottom: 2rem;
  }
}

.date-display {
  display: flex;
  align-items: center;
  background: white;
  background-color: var(--primary);
  color: 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;
}

.date-text {
  font-weight: 500;
  font-size: 0.7rem;
}

/* Notice Board */
.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); */
}
.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;
}
/* .pin::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
} */

/* 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;
  position: relative;
}

.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;
  align-items: start;
}

.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;
  position: absolute;
  top: 10px;
  right: 10px;
}

.academic {
  background-color: #57cc99;
  color: white;
}

.sports,
.vacances {
  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;
}

.card-excerpt {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.865rem;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  text-overflow: ellipsis;
  line-height: 1.5em; /* adjust if needed */
  max-height: 6em;
}

.card-meta {
  margin: auto;
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 5px;
}

.card-date {
  color: #888;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.card-date i {
  color: #888;
  font-size: 1rem;
  margin-right: 5px;
}

.read-more {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  color: var(--primary);
  padding: 5px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  gap: 5px;
  i {
    display: flex;
    margin-top: 1px;
  }
}

/* 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;
}

.parent {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 120px);
  gap: 8px;
}

.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;
  position: relative;
}

.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.3);
  opacity: 1;
  transition: all 0.4s ease;
  align-content: center;
}

.parent:hover {
  .parent-overlay {
    opacity: 1;
  }
}
/* 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: 768px) {
  .notice-container {
    padding: 1.5rem 1.8rem 1.5rem 1.5em;
  }
  .info-list li {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
  }
  .notice-card {
    padding: 0px;
  }
}

@media (max-width: 767px) {
  .school-header {
    flex-direction: column;
    text-align: center;
  }

  .school-logo {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .notice-card {
    flex: 0 0 20rem;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    font-size: 1.3rem;
  }

  .view-toggle {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .news-card {
    width: 95%;
    margin: auto;
  }
  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-meta {
    /* 
    flex-direction: column; */
    flex-wrap: wrap;
    gap: 15px;
  }

  .read-more {
    align-self: stretch;
    text-align: center;
    width: 100%;
    background-color: var(--primary);
    justify-content: center;
    color: white;
  }
}
/* =============================== */
/*       TESTIMONIALS SLIDER       */
/* =============================== */

.testimonials-section {
  background: var(--primary);
  padding: 4rem 0;
}

.testimonial-card {
  background: rgb(52, 113, 65);
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: grab;
}

.testimonial-card h4 {
  color: white;
}

.testimonial-text {
  color: #d1d1d1;
  font-style: italic;
  line-height: 1.6;
  font-size: 0.8rem;
  i {
    color: gold;
  }
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: white;
}

/* Responsive */
@media (min-width: 768px) {
  .testimonial-card {
    padding: 2.5rem;
  }
}
