/* Fr. Joseph Richetti Catholic School - Enhanced Achievements & Newsletter Styling */

/* Enhanced Achievements Section */
.achievements-enhanced {
    background: #f8f8f8 !important;
    background-color: #f8f8f8 !important;
    padding: 100px 0;
}

.achievements-enhanced .section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.achievements-enhanced .section-heading h2 {
    color: #1f272b !important;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: none !important;
}

.achievements-enhanced .section-heading p {
    color: #666 !important;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: none !important;
}

/* Statistics Cards */
.stats-container {
    margin-bottom: 60px;
}

.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #1B8A8A;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: #1B8A8A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: #1B8A8A;
    transform: scale(1.1);
}

.stat-card .stat-icon i {
    font-size: 24px;
    color: #fff;
}

.stat-card .count-digit {
    font-size: 36px;
    font-weight: 700;
    color: #1B8A8A;
    margin-bottom: 10px;
}

.stat-card .count-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Events & Achievements Gallery */
.events-gallery {
    margin-top: 60px;
}

.events-gallery h3 {
    color: #1f272b;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-card .event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-card .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-card .event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1B8A8A;
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.event-card .event-content {
    padding: 25px;
}

.event-card .event-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-card .event-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-card .event-category {
    display: inline-block;
    background: #1B8A8A;
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-card:hover .event-category {
    background: #1B8A8A;
}

/* Newsletter Section */
.newsletter-section {
    background: #ffffff;
    padding: 100px 0;
}

.newsletter-section .section-heading {
    text-align: center;
    margin-bottom: 60px;
    background: white !important;
    padding: 30px !important;
    border-radius: 10px !important;
}

.newsletter-section .section-heading h2 {
    color: #000000 !important;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 3px solid #78D1C5;
    padding-bottom: 15px;
    display: inline-block;
    background: white !important;
    padding: 15px 30px !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.newsletter-section .section-heading p {
    color: #4a5568 !important;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Newsletter Posts */
.newsletter-posts {
    margin-bottom: 60px;
}

.newsletter-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    backdrop-filter: blur(10px);
}

.newsletter-card:hover {
    background: #fff;
    transform: translateY(-5px);
    border-color: #78D1C5;
    box-shadow: 0 5px 20px rgba(120, 209, 197, 0.2);
}

.newsletter-card .post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.newsletter-card .post-date {
    background: #78D1C5;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.newsletter-card .post-author {
    color: #666;
    font-size: 14px;
}

.newsletter-card .post-title {
    color: #1a202c;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.newsletter-card .post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-card .read-more {
    color: #78D1C5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.newsletter-card .read-more:hover {
    color: #5fb8a8;
}

/* Newsletter Subscription */
.newsletter-subscribe {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid #eee;
}

.newsletter-subscribe h3 {
    color: #1a202c;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-subscribe p {
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    background: #fff;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

.newsletter-form button {
    padding: 15px 25px;
    background: #78D1C5;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.newsletter-form button:hover {
    background: #5fb8a8;
    transform: translateY(-2px);
}

/* View More Buttons */
.view-more-section {
    text-align: center;
    margin-top: 50px;
}

.view-more-btn {
    display: inline-block;
    background: #78D1C5;
    color: #fff;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #5fb8a8;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .achievements-enhanced,
    .newsletter-section {
        padding: 60px 0;
    }
    
    .achievements-enhanced .section-heading h2,
    .newsletter-section .section-heading h2 {
        font-size: 24px;
    }
    
    .events-gallery h3 {
        font-size: 20px;
    }
    
    .event-card .event-image {
        height: 180px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card .count-digit {
        font-size: 28px;
    }
}
