/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffcc00;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    color: #fcd9b0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* Webinars Section */
.webinars {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.webinar-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Webinar Card */
.webinar-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webinar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Webinar Image Container */
.webinar-image-container {
    position: relative;
    width: 100%;
    max-height: 400px; /* Adjust to ensure full visibility */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.webinar-image {
    width: auto;
    height: 100%;
    max-height: 400px; /* Ensure proper scaling */
    object-fit: contain;
}

/* Placeholder for Missing Images */
.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: bold;
    height: 100%;
}

/* Webinar Details */
.webinar-details {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.webinar-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.webinar-presenter,
.webinar-date,
.webinar-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}
