.ifc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ifc-heading {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.ifc-month-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.ifc-nav-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s;
}

.ifc-nav-button:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.ifc-nav-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.ifc-month h2 {
    text-align: center;
    font-size: 24px;
    color: #34495e;
    margin: 0 20px;
}

.ifc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.ifc-day-header {
    background: #ecf0f1;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.ifc-day {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.ifc-day:hover {
    background: #e6f3ff;
    transform: scale(1.05);
}

.ifc-day[data-type="Hindu"] {
    background: #ffe6cc;
    border-color: #ff9900;
}

.ifc-day[data-type="Muslim"] {
    background: #e6ffcc;
    border-color: #339900;
}

.ifc-day[data-type="National"] {
    background: #fff3e6;
    border-color: #ff6600;
}

.ifc-day[data-type="Christian"] {
    background: #e6f3ff;
    border-color: #0066cc;
}

.ifc-day[data-type="Sikh"] {
    background: #ffebcc;
    border-color: #cc6600;
}

.ifc-day[data-type="Jain"] {
    background: #f0e6ff;
    border-color: #6600cc;
}

.ifc-day[data-type="Buddhist"] {
    background: #ffe6f3;
    border-color: #cc0066;
}

.ifc-day[data-type="Regional"] {
    background: #e6fff3;
    border-color: #00cc66;
}

.ifc-day.empty {
    background: #f9f9f9;
    cursor: default;
}

.ifc-festival-details {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transition: all 0.5s ease-in-out;
}

.ifc-festival-details.hidden {
    display: none;
}

.ifc-festival-details.hindu {
    background: linear-gradient(135deg, #ffecd2, #ffcc99);
    border: 2px solid #ff9900;
}

.ifc-festival-details.muslim {
    background: linear-gradient(135deg, #e6ffcc, #b3ff66);
    border: 2px solid #339900;
}

.ifc-festival-details.national {
    background: linear-gradient(135deg, #fff3e6, #ffcc99);
    border: 2px solid #ff6600;
}

.ifc-festival-details.christian {
    background: linear-gradient(135deg, #e6f3ff, #99ccff);
    border: 2px solid #0066cc;
}

.ifc-festival-details.sikh {
    background: linear-gradient(135deg, #ffebcc, #ffcc66);
    border: 2px solid #cc6600;
}

.ifc-festival-details.jain {
    background: linear-gradient(135deg, #f0e6ff, #cc99ff);
    border: 2px solid #6600cc;
}

.ifc-festival-details.buddhist {
    background: linear-gradient(135deg, #ffe6f3, #ff99cc);
    border: 2px solid #cc0066;
}

.ifc-festival-details.regional {
    background: linear-gradient(135deg, #e6fff3, #99ffcc);
    border: 2px solid #00cc66;
}

.ifc-festival-details .ifc-details-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ifc-festival-details h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ifc-festival-details .ifc-type {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #34495e;
    text-align: center;
}

.ifc-festival-details .ifc-description {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
    text-align: justify;
}

@media (max-width: 768px) {
    .ifc-heading {
        font-size: 28px;
    }

    .ifc-nav-button {
        padding: 6px 10px;
        font-size: 16px;
    }

    .ifc-month h2 {
        font-size: 20px;
        margin: 0 15px;
    }

    .ifc-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 14px;
    }
    
    .ifc-day {
        padding: 10px;
    }

    .ifc-festival-details {
        padding: 15px;
    }

    .ifc-festival-details h3 {
        font-size: 24px;
    }

    .ifc-festival-details .ifc-type {
        font-size: 16px;
    }

    .ifc-festival-details .ifc-description {
        font-size: 14px;
    }
}