/* On This Day Module Styling */
.mha-today-events-section {
    background: #f8f9fa;
    color: #333;
    padding: 40px 0;
    margin: 30px 0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.mha-events-header {
    text-align: center;
    margin-bottom: 30px;
}

.mha-events-header h2 {
    font-size: 2rem;
    color: #39624c;
    margin-bottom: 5px;
    font-weight: 800;
}

.mha-events-header p {
    color: #666;
    font-size: 1rem;
}

.mha-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.mha-event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.mha-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: #39624c;
}

.mha-event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.mha-event-year {
    font-size: 1.5rem;
    font-weight: 900;
    color: #39624c;
    margin-bottom: 5px;
}

.mha-event-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.mha-no-events {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Submission Form Footer */
.mha-events-form-trigger {
    text-align: center;
    margin-top: 30px;
}

.btn-open-event-form {
    background: #39624c;
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-open-event-form:hover {
    background: #2d5643;
    transform: scale(1.05);
}

/* Modal Styling */
.mha-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.mha-event-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    color: #333;
    direction: rtl;
}

.mha-event-modal-content h3 {
    color: #0f1113;
    margin-bottom: 25px;
}

/* Single Event Page Styling */
.mha-event-single-container {
    background: #fdfdfd;
    min-height: 80vh;
    padding: 20px 0;
}

.mha-breadcrumb {
    font-size: 0.95rem;
    color: #888;
    background: transparent;
    padding: 0;
}

.mha-breadcrumb a {
    color: #39624c;
    text-decoration: none;
    font-weight: 600;
}

.mha-breadcrumb span {
    color: #999;
}

.mha-event-article {
    border: none !important;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 40px;
}

.mha-event-article .card-body {
    padding: 60px !important;
}

.mha-event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f1f3f5;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: #39624c;
    margin-bottom: 20px;
}

.mha-event-date-badge .day {
    font-size: 1.4rem;
}

.mha-event-date-badge .month {
    font-size: 1.1rem;
}

.mha-event-date-badge .year {
    color: #888;
    font-weight: normal;
    border-right: 1px solid #ddd;
    padding-right: 12px;
    margin-right: 2px;
}

.mha-event-content {
    color: #4a4a4a;
    font-size: 1.15rem;
    line-height: 1.8;
}

.mha-event-footer-meta {
    margin-top: 40px;
}

.mha-event-footer-meta .badge {
    font-size: 0.9rem;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.mha-event-footer-meta .badge:hover {
    background: #39624c !important;
    color: #fff !important;
}

.container-mha {
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .mha-event-hero-img {
        min-height: 300px !important;
    }

    .mha-event-article .card-body {
        padding: 40px 25px !important;
    }
}

.mha-related-gallery {
    border-top: 2px solid #f1f3f5;
    padding-top: 30px;
    margin-top: 30px;
}

.mha-thumbnail-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    /* 3 Columns on mobile */
    gap: 10px !important;
}

@media (min-width: 768px) {
    .mha-thumbnail-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        /* 6 Columns on desktop */
    }
}

.mha-related-gallery h4 {
    color: #39624c;
    position: relative;
    padding-right: 15px;
}

.mha-related-gallery h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: #39624c;
    border-radius: 2px;
}

.mha-event-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1/1;
    background: #eee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mha-event-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mha-event-gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(57, 98, 76, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.mha-event-gallery-item:hover img {
    transform: scale(1.1);
}

.mha-event-gallery-item:hover .overlay {
    opacity: 1;
}

.mha-event-gallery-item i {
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.mha-event-gallery-item:hover i {
    transform: translateY(0);
}


.mha-event-form-group {
    margin-bottom: 15px;
}

.mha-event-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.mha-event-form-group input,
.mha-event-form-group select,
.mha-event-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-submit-event {
    background: #39624c;
    color: #fff;
    border: none;
    padding: 12px 0;
    width: 100%;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-submit-event:hover {
    background: #2d5643;
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: #999;
}