.usa-holidays-calendar {
    max-width: 100%;
    width: 100%;
    margin: 20px auto;
    padding: 15px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', 'Helvetica', sans-serif;
    box-sizing: border-box;
}

.calendar-header {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #d3d3d3; /* Lighter gray background */
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Space before Today button */
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.calendar-header button {
    background: #4b5e7e; /* Original soft blue-gray */
    color: #ffffff;
    border: none;
    padding: 15px 20px; /* Larger padding */
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 14px;
    min-width: 60px; /* Larger minimum width */
    min-height: 60px; /* Larger minimum height */
}

.calendar-header button:hover {
    background: #3b4a66; /* Darker blue-gray on hover */
    transform: translateY(-2px);
}

.month-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
    flex-grow: 1;
    text-align: center;
    padding: 0 15px; /* Add padding for better spacing */
}

.today-month {
    display: block;
    width: 100%;
    background: #4b5e7e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 14px;
    font-weight: bold;
    min-width: 120px;
    margin: 0 auto; /* Center the button */
}

.today-month:hover {
    background: #3b4a66;
    transform: translateY(-2px);
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-body .day-name {
    background: #e0e0e0;
    color: #333333;
    font-weight: bold;
    text-transform: uppercase;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.calendar-body .day-name:hover {
    background: #d0d0d0;
}

.calendar-body .empty-day {
    background: #f0f0f0;
    color: #333333;
    padding: 8px;
    border-radius: 6px;
}

.calendar-body div {
    padding: 8px;
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 0.9rem;
}

.calendar-body .holiday,
.calendar-body .sunday,
.calendar-body .saturday {
    background: #e57373;
    color: #ffffff;
    cursor: pointer;
}

.calendar-body .holiday:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.calendar-body .sunday:hover {
    background: #ef9a9a;
    transform: scale(1.05);
}

.calendar-body .saturday:hover {
    background: #ef9a9a;
    transform: scale(1.05);
}

.calendar-body .today {
    border: 2px solid #4b5e7e;
    background: #e0e0e0;
    font-weight: bold;
}

.all-holidays-btn {
    display: block;
    margin: 15px auto;
    background: #4b5e7e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 14px;
    font-weight: bold;
    min-width: 120px;
    min-height: 44px;
}

.all-holidays-btn:hover {
    background: #3b4a66;
    transform: translateY(-2px);
}

.holiday-details {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInDetails 0.5s ease-in-out;
    margin-bottom: 15px;
    display: none;
}

.holiday-details h3 {
    margin: 0 0 10px;
    color: #4b5e7e;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.holiday-details p {
    margin: 0 0 10px;
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
}

.holiday-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.holiday-details li {
    color: #555555;
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.holiday-details li:before {
    content: '•';
    color: #e57373;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.holiday-details li strong {
    color: #333333;
}

.holiday-details li em {
    color: #4b5e7e;
}

.holiday-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
}

.holiday-list {
    flex: 1 1 100%;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.holiday-list h3 {
    margin: 0 0 10px;
    color: #4b5e7e;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.holiday-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.holiday-list li {
    color: #555555;
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    transition: background 0.2s ease;
}

.holiday-list li:before {
    content: '•';
    color: #e57373;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.holiday-list li span.holiday-link {
    color: #333333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.holiday-list li span.holiday-link:hover {
    color: #e57373;
    text-decoration: underline;
}

.holiday-list li:last-child {
    margin-bottom: 0;
}

.all-holidays {
    flex: 1 1 100%;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInDetails 0.5s ease-in-out;
    display: none;
}

.all-holidays.active-with-details {
    flex: 1 1 40%;
}

.all-holidays h3 {
    margin: 0 0 10px;
    color: #4b5e7e;
    font-size: 1.25rem;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.all-holidays ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.all-holidays li {
    color: #555555;
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    transition: background 0.2s ease;
}

.all-holidays li:before {
    content: '•';
    color: #e57373;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 2px;
}

.all-holidays li span.holiday-link {
    color: #333333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.all-holidays li span.holiday-link:hover {
    color: #e57373;
    text-decoration: underline;
}

.all-holidays li:last-child {
    margin-bottom: 0;
}

@keyframes fadeInDetails {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1025px) {
    .holiday-container.active-with-details {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
    }

    .all-holidays.active-with-details {
        flex: 1 1 40%;
    }

    .holiday-details.active-with-details {
        flex: 1 1 60%;
    }
}

@media (max-width: 1024px) {
    .usa-holidays-calendar { padding: 10px; }
    .calendar-header { flex-wrap: wrap; gap: 10px; }
    .nav-row { flex-direction: column; align-items: center; }
    .nav-buttons { gap: 10px; }
    .calendar-header button { padding: 12px 18px; font-size: 0.85rem; }
    .month-year { font-size: 1.25rem; }
    .today-month { width: auto; margin-top: 10px; }
    .calendar-body .day-name, .calendar-body div { padding: 6px; font-size: 0.8rem; }
    .all-holidays-btn { padding: 8px 16px; font-size: 0.85rem; }
    .holiday-details, .holiday-list, .all-holidays { padding: 12px; }
    .holiday-details h3, .holiday-list h3, .all-holidays h3 { font-size: 1.1rem; }
    .holiday-details li, .holiday-list li, .all-holidays li { font-size: 0.85rem; }
}

@media (max-width: 600px) {
    .usa-holidays-calendar { padding: 8px; margin: 10px; }
    .calendar-header { flex-direction: column; align-items: center; gap: 8px; }
    .nav-row { flex-direction: row; justify-content: center; gap: 5px; }
    .nav-buttons { gap: 5px; }
    .calendar-header button { padding: 10px 15px; font-size: 0.8rem; min-width: 50px; min-height: 50px; }
    .month-year { font-size: 1.1rem; padding: 0 10px; }
    .today-month { width: 100%; margin-top: 8px; }
    .calendar-body { gap: 3px; }
    .calendar-body .day-name, .calendar-body div { padding: 5px; font-size: 0.75rem; }
    .all-holidays-btn { padding: 6px 12px; font-size: 0.8rem; min-width: 100px; }
    .holiday-details, .holiday-list, .all-holidays { padding: 10px; margin-top: 10px; }
    .holiday-details h3, .holiday-list h3, .all-holidays h3 { font-size: 1rem; }
    .holiday-details li, .holiday-list li, .all-holidays li { font-size: 0.8rem; padding-left: 15px; }
    .holiday-details li:before, .holiday-list li:before, .all-holidays li:before { font-size: 0.9rem; top: 1px; }
}