/* Banner Section */
.banner {
    position: relative;
    height: 60vh;
    min-height: 300px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.banner-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width:100%;
}

.banner-content h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display:block;
    width:100%;
}

.banner-content p {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .banner-content h1 {
        font-size: 1.5rem;
    }

    .banner-content p {
        font-size: 1rem;
    }
}

/* Events Section */
.events {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.events h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #fa6102;
    margin-bottom: 40px;
}

.event-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 768px) {
    .event-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.event-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-content p {
    font-size: 1rem;
    color: #444;
}

.event-card.free h3 {
    color: #146a41;
}

.event-card.paid h3 {
    color: #e35e0c;
}


/* // */

/* Banner */
.free-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1510894347713-fc3ed6fdf539?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTZ8fHlvZ2F8ZW58MHx8MHx8fDA%3D') no-repeat center center/cover;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.free-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.free-banner .banner-text {
    position: relative;
    text-align: center;
    z-index: 2;
}

.free-banner h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.free-banner p {
    font-size: 1.1rem;
}

/* Event Section */
.event-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.event-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fa6102;
}

.event-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .banner-text{
        font-size:1.7rem;
    }
    .event-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.event-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 20px;
}

.event-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #146a41;
}

.event-info p {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #333;
}

.join-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background-color: #fa6102;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.join-btn:hover {
    background-color: #d94d00;
}

/* Completed Event Styling */
.completed h3 {
    color: #999;
}

.completed p:last-child {
    color: red;
    font-weight: bold;
}


/* / */
/* Modal Styling */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-logo {
    width: 60px;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #146a41;
    margin-bottom: 5px;
}

.modal-header p {
    font-size: 0.95rem;
    color: #666;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.join-form label {
    font-weight: 500;
    font-size: 0.95rem;
}

.join-form input {
    padding: 10px 12px;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    transition: border 0.2s;
}

.join-form input:focus {
    border-color: #fa6102;
}

.submit-btn {
    padding: 12px;
    background-color: #fa6102;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #d94d00;
}

/* Utility */
.hidden {
    display: none;
}

.join-form select {
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: border 0.2s;
}

.join-form select:focus {
  border-color: #fa6102;
}
