body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
    background-image: url('../media/bhutan.png'); /* Adjusted path */
    background-repeat: repeat;
    background-size: 150px; /* Fixed size instead of percentage */
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.event-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.card-image-container {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.card-description {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-actions {
    margin-top: auto;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-details:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
    color: white;
}

.no-events {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.load-more-container {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    padding: 0.75rem 2rem;
    color: #3498db;
    background-color: transparent;
    border: 2px solid #3498db;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #d5d7da;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
    padding: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    background-image: url('../media/bhutan.png'); /* Adjusted path */
    background-repeat: repeat;
    background-size: 150px; /* Fixed size instead of percentage */
    background-attachment: fixed;
    margin-bottom: 1px;
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 500px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.2);
    outline: none;
}