/* Conference Icons */
.conference-container {
    text-align: left;
    margin-top: 5px;
    margin-bottom: 7%;
}

.conference-links {
    display: flex;
    flex-wrap: wrap;

    margin-left: 5%;
    margin-right: 5%;
    justify-content: center; /* Center the items horizontally */
}

.conference-links a {
    display: flex;
    max-width: calc(20% - 8vw); /* Adjusted for equal spacing */
    align-items: center;
    text-align: center;
    max-height: 50vh; /* Reduce the maximum height of the images */
    margin: 10px; /* Add margin to create space around each link */
}


.conference {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.conference:hover {
    filter: invert(100%);
}

.conference-container h1 {
    text-align: left;
    margin-top: 0px;
    margin-left: 5%;
}

.conference-container h2 {
    text-align: left;
    margin-bottom: 2%;
    margin-left: 5%;
}

/* Upcoming */
.upcoming-section {
    text-align: left;
    margin-top: 5%;
}

.upcoming-container {
    display: flex;
    justify-content: space-between;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 4%;
    flex-wrap: wrap; /* Allow cards to wrap to the next line if necessary */
}

.upcoming-card {
    position: relative; /* Add position for proper z-index stacking */
    flex: 0 0 calc(50% - 15px);
    box-sizing: border-box;
    width: 49%;
    gap: 15px;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(156, 176, 161, 0.706); /* Set background color to #FAFAFA */
    color: #FAFAFA; /* Set text color to #FAFAFA */
    transition: transform 0.3s ease;
}

.upcoming-card a {
    text-decoration: none; /* Remove underline from hyperlink */
    color: inherit; /* Inherit text color from parent element */
}

.upcoming-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e9d9bd8b; /* Adjust the color and opacity as needed */
    border-radius: 20px;
    z-index: -1; /* Position the faded layer below the content */
    transition: opacity 0.3s ease; /* Add a transition for smooth opacity change */
    opacity: 0; /* Initially hidden */
}

.upcoming-card:hover {
    transform: scale(1.05); /* Scale up the card on hover */
}

.upcoming-card:hover::before {
    opacity: 1; /* Show the overlay on hover */
}

.upcoming-tile {
    position: relative;
    z-index: 2; /* Position the content above the faded layer */
}

.upcoming-title h1 {
    text-align: left;
    margin-top: 0px; /* Adjust margin as needed */
    margin-left: 5%;
    margin-bottom: 1%;
}

.upcoming-section {
    position: relative;
    color: inherit; /* Use the color inherited from the parent (if needed) */
    margin-top: 4px; /* Adjust margin as needed */
    z-index: 2; /* Position the content above the faded layer */
}

.upcoming-section:hover {
    text-decoration: none; /* Remove underline on hover (if needed) */
}

.upcoming-section h1 {
    text-align: left;
    margin-left: 0.2%;
    margin-top: 0px;
    text-decoration: none; /* Remove underline */
}

.upcoming-card h2 {
    font-weight: bold;
    text-align: left;
    margin-left: 0.3%;
    font-family: 'Container', sans-serif;
    margin-bottom: 4px;
    text-decoration: none; /* Remove underline */
}

.upcoming-card h3 {
    font-weight: bold;
    text-align: left;
    font-family: 'Container', sans-serif;
    margin-bottom: 2px;
    text-decoration: none; /* Remove underline */
}

.upcoming-card p {
    text-align: left;
    font-family: 'Container', sans-serif;
    margin-bottom: 0; /* Adjust margin as needed */
}

/* Video Cards showing */

.cards-title {
    text-align: left;
    margin-top: 0px; /* Adjust margin as needed */
    margin-left: 5%;
}
.cards-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-left: 4%;
    margin-right: 4%;
}

.card-link {
    text-decoration: none; /* Remove default link underline */
    position: relative; /* Add relative positioning to the link container */
    display: inline-block; /* Ensure the link only takes the space it needs */
}

.card {
    flex: 0 0 calc(33.33% - 14px); /* Equal width for all cards */
    box-sizing: border-box;
    margin: 10px; /* Adjust margin as needed */
    padding: 20px;
    text-align: center;
    border-radius: 2%;
    background-color: rgba(156, 176, 161, 0.706); /* Set background color */
    color: #535d56;
    transition: background-color 0.3s, transform 0.3s;
}

.card:hover {
    background-color: #9bb2a2;
    transform: scale(1.05);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    z-index: 0; /* Place the image below the play icon */
}

.card-title {
    font-size: 20px;
    margin: 10px 0;
}

.card-subtitle {
    font-size: 16px;
    color: #5e5a5a;
    margin-top: 5px;
}

.tags {
    font-size: 14px;
    color: #888;
    display: inline-block;
    margin-top: 10px;
}

.tag {
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #d3e3cc;
    color: #394240;
    margin-right: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.tag:hover {
    background-color: #9bb2a2;
    color: #FAFAFA;
    transform: scale(1.05);
}

.card::before {
    content: '▶';
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: white;
    border-radius: 110%;
    border: 3px solid #ecf0f1;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px; /* Adjust the size of the circular border */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: transform 0.3s, padding 0.3s; /* Add transition for transform and padding */
}

.card:hover::before {
    transform: translate(-50%, -50%) scale(1.1); /* Expand the play icon on hover */
    padding: 15px; /* Increase the circular border size on hover */
}
