html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #F8F8F8;
}

main {
    background-color: #F8F8F8;
}


.hero-new {
    background-color: transparent;
    padding: 140px 0 80px 0;
    /* Top padding to account for fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-container {
    width: 90%;
    /* 90% width as requested */
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 80px;
}

.hero-logo-wrapper {
    flex: 0 0 auto;
}

.hero-logo {
    width: 350px;
    height: auto;
}

.hero-text-wrapper {
    flex: 1;
    max-width: 600px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-text-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #000;
}

.hero-text-wrapper p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-logo {
        width: 250px;
    }
}

.sbs-em {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.sbs-em h1 {
    margin-left: 0;
    margin-bottom: 24px;
    font-weight: 600;
}

.sbs-em img[alt="Atrium Solvay R42"] {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 6px 32px 0 rgba(0, 0, 0, 0.13), 0 1.5px 8px 0 rgba(0, 0, 0, 0.10);
    background: #fff;
    padding: 0;
}

.pub-insta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 3rem;
    margin: 4rem auto;
    box-sizing: border-box;
    /* Gradient background: subtle off-white to very light orange */
    background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
    width: 90%;
    max-width: 1400px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Decorative element */
.pub-insta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 22px;
    z-index: 0;
}

.pub-insta .txt-insta {
    flex: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.pub-insta .txt-insta h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2c3e50;
    margin: 0 0 2rem 0;
}

.pub-insta .logos-reseaux {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.pub-insta .logos-reseaux a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pub-insta .logos-reseaux a:hover {
    transform: translateY(-5px);
}

.pub-insta .logos-reseaux img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* The CTA Link */
.pub-insta .txt-insta>a {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background-color: #ff9933;
    /* Solvay Orange */
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Ensure readable font */
}

.pub-insta .txt-insta>a:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

/* The Phone Mockup */
.pub-insta>img {
    flex: 0 0 auto;
    width: 380px;
    max-width: 100%;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.pub-insta:hover>img {
    transform: rotate(0deg) scale(1.02);
}

/* Responsive */
@media (max-width: 900px) {
    .pub-insta {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
        gap: 3rem;
        margin: 2rem 1rem;
        border-radius: 20px;
    }

    .pub-insta .txt-insta {
        align-items: center;
        width: 100%;
    }

    .pub-insta .txt-insta h2 {
        font-size: 1.8rem;
    }

    .pub-insta .logos-reseaux {
        justify-content: center;
        gap: 1rem;
    }

    .pub-insta .logos-reseaux img {
        width: 50px;
        height: 50px;
    }

    .pub-insta>img {
        width: 80%;
        max-width: 320px;
        transform: rotate(0);
    }

    .pub-insta:hover>img {
        transform: scale(1.02);
    }
}

.txt-insta-bold {
    margin-left: 0;
}

.sbs-em h1 {
    margin-left: 0;
}

.study-links-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 32px;
}

.study-links-solvay,
.study-links-ulb {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.study-logo {
    width: 330px;
    height: auto;
    margin-bottom: 16px;
}

.study-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.study-links-list a {
    text-decoration: none;
    color: #000;
    /* Set to black as per general site style, or remove to keep default blue */
    font-weight: 500;
}

.study-links-list a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .study-links-row {
        flex-direction: column;
        gap: 24px;
    }

    .study-links-solvay,
    .study-links-ulb {
        width: 100%;
    }

    .study-logo {
        width: 180px;
        /* Increased from 90px */
    }
}




/* Beta Warning */
.beta-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px 20px;
    margin: 100px auto 20px auto;
    width: 90%;
    max-width: 1400px;
    text-align: center;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.beta-warning p {
    margin: 0;
}

.beta-warning+.hero-new {
    padding-top: 20px;
}

@media (max-width: 900px) {
    .beta-warning {
        margin-top: 90px;
        font-size: 0.9rem;
    }
}

/* Upcoming Events Section */
.upcoming-events {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0;
}

.upcoming-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111827;
    text-align: left;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    border-radius: 20px;
    background: #ffffff;
    /* Masking for notches */
    -webkit-mask-image: radial-gradient(circle 12px at 0 220px, transparent 12px, black 13px), radial-gradient(circle 12px at 100% 220px, transparent 12px, black 13px);
    mask-image: radial-gradient(circle 12px at 0 220px, transparent 12px, black 13px), radial-gradient(circle 12px at 100% 220px, transparent 12px, black 13px);
    -webkit-mask-size: 51% 100%;
    mask-size: 51% 100%;
    -webkit-mask-position: left, right;
    mask-position: left, right;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    /* Use drop-shadow for shape-aware shadow */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: none;
}

/* Pseudo-elements removed for mask implementation */

.event-card:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.15));
}

.event-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #f3f4f6;
    border-radius: 20px 20px 0 0;
}

.event-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

.event-location {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

.event-location svg,
.event-date-row svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.event-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}

.upcoming-more {
    margin-top: 40px;
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-more:hover {
    border-color: #000;
    color: #000;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-container h2 {
        text-align: left;
        font-size: 1.5rem;
    }

    .hero-text-wrapper h1 {
        font-size: 1.8rem;
    }

    .sbs-em h1 {
        font-size: 1.5rem;
    }

    .pub-insta .txt-insta h2 {
        font-size: 1.6rem;
    }
}