/* Center and scale logo when only one company is shown */
.company-showcase-one-company {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* adjust as needed */
}

.company-showcase-one-company .company-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.company-showcase-one-company .company-logo {
    margin: 0 auto;
    display: block;
}
/* Grid container styles */

/* General container styles (People and Talks) */
.people-showcase,
.talks-container {
    max-width: 1200px; /* Increase maximum width to accommodate the grid */
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

.people-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 20px; /* Space between items */
    background-color: #f8f9fa; /* Light grey background */
    border-radius: 0px; /* Rounded corners for the container */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for elegance */
}

/* Individual person styles */
.person {
    text-align: center;
    background-color: #ffffff; /* White background for each card */
    padding: 15px;
    border: 1px solid #e0e0e0; /* Light border */
    border-radius: 8px; /* Rounded corners for each card */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for person cards */
.person:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Person image */
.person-image {
    max-width: 100%; /* Responsive image */
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Name styles */
.person-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    margin: 10px 0 5px;
}

/* Job title styles */
.person-job-title {
    font-size: 1em;
    color: #555555;
    margin-bottom: 5px;
}

/* Company name styles */
.person-company-name {
    font-size: 0.95em;
    color: #777777;
    margin-bottom: 5px;
}

/* Email styles */
.person-email {
    font-size: 0.9em;
    color: #999999;
    margin-bottom: 10px;
}

/* Social links container */
.social-links {
    margin-top: 10px;
}

/* Social link styles */
.social-links a {
    margin: 0 5px;
    font-size: 0.9em;
    text-decoration: none;
    color: #0073e6; /* Blue link color */
    transition: color 0.3s;
}

.social-links a:hover {
    color: #005bb5; /* Darker blue on hover */
}

@media (max-width: 768px) {
    .people-showcase {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .people-showcase {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}
/* General container styles (Companies) */
.company-showcase {
    max-width: 1200px; /* Maximum width for the container */
    margin: 0 auto; /* Center the container */
    padding: 20px;
    border-radius: 8px;
    display: grid; /* Enable grid layout */
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 20px; /* Space between logos */
    text-align: center; /* Center the content in the grid */
    align-items: center; /* Align logos in the middle vertically */
    justify-items: center; /* Center items horizontally within their grid cells */
}

/* Center 2 logos by using a 2-column grid */
.company-showcase:has(.company-card:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, 1fr); /* Change to 2 columns when exactly 2 cards */
}

.company-showcase .company-card:first-child:nth-last-child(2) {
    grid-column: 1; /* First logo in column 1 */
}

.company-showcase .company-card:first-child:nth-last-child(2) ~ .company-card {
    grid-column: 2; /* Second logo in column 2 */
}

/* 1 logo wide on mobile */
@media (max-width: 480px) {
    .company-showcase {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    /* Reset the centering on mobile */
    .company-showcase .company-card:first-child:nth-last-child(2) {
        grid-column: auto;
    }

    .company-showcase .company-card:first-child:nth-last-child(2) ~ .company-card {
        grid-column: auto;
    }
}



/* Individual company logo styles */
.company-logo {
    max-width: 100%; /* Ensure the logo fits within its column */
    height: auto;
    border-radius: 5px; /* Optional: Slight rounding of logo edges */
    padding: 10px; /* Space around the logos */
    transition: transform 0.3s, box-shadow 0.3s; /* Add hover effect */
}

/* Hover effect for logos */
.company-logo:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Add a shadow effect */
}


/* Individual company styles */
.company {
    text-align: center;
    background-color: #ffffff; /* White background for each card */
    padding: 15px;
    border: 1px solid #d1d5db; /* Light border */
    border-radius: 10px; /* Rounded corners for company cards */
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect for company cards */
.company:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}


/* Company name styles */
.company-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #1f2937;
    margin: 10px 0;
}

/* Industry type styles */
.company-industry {
    font-size: 1em;
    color: #374151;
    margin-bottom: 10px;
}

/* Company address styles */
.company-address {
    font-size: 0.95em;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Social links for companies */
.company-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.company-social a {
    color: #3b82f6; /* Brand blue for links */
    font-size: 1.2em;
    transition: color 0.3s;
}

.company-social a:hover {
    color: #2563eb; /* Slightly darker blue on hover */
}

/* General container styles (Talks) */
.talks-showcase {
    max-width: 1200px; /* Maximum width for the container */
    margin: 0 auto; /* Center the container */
    padding: 20px;
    background-color: #f9f9fb; /* Light background color */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for elegance */
    display: grid; /* Enable grid layout */
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 20px; /* Space between cards */
    text-align: center; /* Center the content in the grid */
}

/* show only 2 talks on mobile */
@media (max-width: 768px) {
  .talks-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Individual talk card styles */
.talk-card {
    text-align: center;
    background-color: #ffffff; /* White background for each card */
    padding: 15px;
    border: 1px solid #e0e0e0; /* Light border */
    border-radius: 10px; /* Rounded corners for talk cards */
    transition: transform 0.3s, box-shadow 0.3s; /* Add hover effect */
}

/* Hover effect for talk cards */
.talk-card:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Talk thumbnail */
.talk-thumbnail {
    max-width: 100%; /* Ensure thumbnail fits within its column */
    height: auto;
    border-radius: 8px; /* Optional: Slight rounding of thumbnail edges */
    margin-bottom: 15px;
}

/* Talk title styles */
.talk-title {
    font-weight: bold;
    color: #333333;
    margin: 10px 0;
}

.talk-title a {
    font-weight: bold;
    color: #333333;
    margin: 10px 0;
}


/* Talk description styles */
.talk-description {
    display: none; /* Hide description by default */;
    font-size: 1em;
    color: #555555;
    margin-bottom: 10px;
}

/* YouTube link styles */
.talk-link {
    display: inline-block;
    font-size: 1em;
    color: #ff0000; /* YouTube red for link color */
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s;
}

.talk-link:hover {
    color: #cc0000; /* Darker red on hover */
}

/* Video wrapper styles to display the iframe */
.sqs-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.sqs-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Single talk styles. Mainly to get round the initial load. */
.single-talk h1 {
    font-size: 42px;
    font-weight: 400;
    line-height: 50px;
    color: #ffffff !important;
    margin: 20px 0;
}

.single-talk time {
    font-size: 32px;
    color: #1F1F1F !important;
    margin: 10px 0;
}

/* Header styles should not be here but can't find out how to do it */
.black-background {
    background-color: #000 !important;
}
.hero-image {
    top: -117px;
    z-index: -1;
    height: 575px;
}

.wp-site-blocks {
    padding-top: 0px;
}

.wp-block-uagb-container.uagb-block-8h2fczau {
    padding-top: 32px !important;
}

/* Add some padding to the mobile view */
@media (max-width: 768px) {
  .wp-block-post-content {
    padding: 2rem 1rem !important; 
  }
}


