/* Announcements Section */
.announcements {
    padding: 40px 40px;
    background-color: var(--secondary-color);
}

.announcements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.announcements-header {
    text-align: center;
    margin-bottom: 80px;
}

.announcements-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.announcements-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.announcement-card {
    background: white;
    padding: 1rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(8, 180, 92, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
}

.announcement-card.hidden {
    display: none;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 180, 92, 0.02), rgba(8, 180, 92, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 22px;
    z-index: 0;
}

.announcement-card:hover::before {
    opacity: 1;
}

.announcement-card:active {
    transform: translateY(-8px) scale(1.01);
}

.announcement-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-content {
    position: relative;
    z-index: 1;
    padding: 12px 0;
}

.announcement-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 12px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.announcement-card:hover .announcement-content h3 {
    color: var(--primary-color);
}

.announcement-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-date {
    font-size: 0.95rem;
    color: #8b8b8b;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.see-more-container {
    text-align: center;
    margin-top: 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border: none;
  font-family: inherit;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(8, 180, 92, 0.3);
  cursor: pointer;
}

.announcement-modal {
    max-width: 650px;
    width: 92%;
    padding: 45px;
    border-radius: 28px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    /* background: white; */
}

.announcement-modal-content .image-modal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-modal-content img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
}

.announcement-modal-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 18px;
    line-height: 1.3;
}

.announcement-modal-content p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
}

.announcement-modal-content span {
    font-size: 0.95rem;
    color: #8b8b8b;
    text-align: center;
    display: block;
}

/* Schedules Section */
.schedules {
    padding: 100px 40px;
    background-color: var(--accent-color);
}

.schedules-container {
    max-width: 1200px;
    margin: 0 auto;
}

.schedules-header {
    text-align: center;
    margin-bottom: 80px;
}

.schedules-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.schedules-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.calendar-container {
    background: white;
    padding: 45px;
    border-radius: 28px;
    backdrop-filter: blur(10px);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(8, 180, 92, 0.1);
}

.calendar-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-nav {
    background: linear-gradient(135deg, var(--accent-color), rgba(8, 180, 92, 0.1));
    border: none;
    padding: 12px 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(8, 180, 92, 0.1);
}

.calendar-nav:hover {
    background: linear-gradient(135deg, var(--primary-color), rgba(8, 180, 92, 0.8));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 180, 92, 0.2);
}

.calendar-nav:active {
    transform: translateY(0);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.calendar-day {
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), rgba(8, 180, 92, 0.05));
    border-radius: 16px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.calendar-date {
    height: 140px;
    padding: 12px;
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.calendar-date.empty {
    background: linear-gradient(135deg, rgba(8, 180, 92, 0.03), rgba(8, 180, 92, 0.01));
}

.date-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(8, 180, 92, 0.08);
    transition: all 0.3s ease;
}

.sticky-note {
    position: absolute;
    top: 40px;
    background: linear-gradient(135deg, #fff9c4, #fffacc);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: rotate(-1.5deg);
    width: calc(100% - 24px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.sticky-note::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff5555);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sticky-note::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(255, 193, 7, 0.3) 0px,
        rgba(255, 193, 7, 0.3) 4px,
        transparent 4px,
        transparent 8px
    );
}

.event {
    margin-bottom: 6px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.event h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.2;
}

.event p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Event Cards for Mobile */
.event-cards {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(8, 180, 92, 0.08);
    border: 2px solid rgba(8, 180, 92, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(8, 180, 92, 0.12);
}

.event-card:active {
    transform: translateY(0);
}

.event-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.event-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #8b8b8b;
}

.event-date,
.event-time {
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .announcements,
    .schedules {
        padding: 60px 20px;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .announcement-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .announcement-content {
        padding: 16px 0;
    }

    .see-more-container {
        margin-top: 25px;
    }

    .see-more-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .calendar-container {
        display: none;
    }

    .event-cards {
        display: flex;
    }

    .event-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .calendar-grid {
        gap: 8px;
    }

    .calendar-date {
        height: 120px;
        padding: 8px;
    }

    .sticky-note {
        max-height: 70px;
        padding: 10px;
    }

    .event h4 {
        font-size: 0.85rem;
    }

    .event p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .announcements,
    .schedules {
        padding: 40px 15px;
    }

    .announcements-header,
    .schedules-header {
        margin-bottom: 60px;
    }

    .announcements-header h2,
    .schedules-header h2 {
        font-size: 2rem;
    }

    .announcements-header p,
    .schedules-header p {
        font-size: 1rem;
    }

    .announcement-card {
        padding: 0.75rem;
    }

    .announcement-image {
        height: 180px;
    }

    .announcement-content h3 {
        font-size: 1.3rem;
    }

    .announcement-content p {
        font-size: 0.9rem;
    }

    .announcement-date {
        font-size: 0.85rem;
    }

    .see-more-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .announcement-modal {
        padding: 20px;
        border-radius: 20px;
    }

    .announcement-modal-content img {
        max-height: 200px;
        width: 100%;
        border-radius: 16px;
    }

    .announcement-modal-content h2 {
        font-size: 1.3rem;
    }

    .announcement-modal-content p {
        font-size: 0.9rem;
    }

    .announcement-modal-content span {
        font-size: 0.85rem;
    }

    .event-card {
        padding: 15px;
    }

    .event-card h4 {
        font-size: 1.1rem;
    }

    .event-card p {
        font-size: 0.9rem;
    }

    .event-details {
        font-size: 0.85rem;
    }

    .calendar-date {
        height: 100px;
        padding: 6px;
    }

    .sticky-note {
        max-height: 60px;
        padding: 8px;
    }

    .date-number {
        font-size: 1rem;
        width: 24px;
        height: 24px;
    }
}