/* =========================================================
   MARCUS SCIENCE GROUP — GLOBAL WEBSITE STYLES
========================================================= */

:root {
    --navy: #071a2f;
    --navy-dark: #04111f;
    --navy-light: #102b47;
    --teal: #16b8a6;
    --teal-light: #22d3c5;
    --green-accent: #10b981;
    --white: #ffffff;
    --text: #d7e2ee;
    --muted: #91a4b8;
    --border: rgba(255, 255, 255, 0.12);
    --glass: rgba(8, 27, 47, 0.88);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    --radius: 18px;
    --container: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--navy-dark);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */

.site-header {
    position: fixed;
    top: 18px;
    left: 0;
    width: 100%;
    z-index: 9999;
    pointer-events: none;
}

.nav-wrapper {
    width: min(calc(100% - 40px), 1180px);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 14px 10px 18px;
    background: rgba(8, 27, 47, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    transition: min-height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled .nav-wrapper {
    min-height: 66px;
    background: rgba(5, 20, 35, 0.95);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-logo, .brand-mark {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.brand-logo img, .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.brand-text, .brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.4px;
    white-space: nowrap;
}

.brand-tagline {
    margin-top: 5px;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: var(--muted);
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link, .nav-dropdown-toggle, .nav-contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 11px;
    border: 0;
    background: transparent;
    color: #dce8f4;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover, .nav-dropdown-toggle:hover, .nav-link.active, .nav-contact-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow, .nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    width: 235px;
    padding: 9px;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(7, 25, 43, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #07192b;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: #c9d7e5;
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    color: var(--white);
    background: rgba(22, 184, 166, 0.12);
    padding-left: 17px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 17px;
    border-radius: 12px;
    background: linear-gradient(135deg, #15b7a4, #24cbb9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(22, 184, 166, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta span {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(22, 184, 166, 0.3);
}

.nav-cta:hover span {
    transform: translateX(3px);
}

.mobile-menu-button {
    display: none;
    width: 45px;
    height: 45px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 10px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-navigation {
    display: none;
    width: min(calc(100% - 40px), 1180px);
    margin: 8px auto 0;
    padding: 14px;
    background: rgba(7, 25, 43, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
}

.mobile-navigation.active {
    display: block;
}

.mobile-navigation > a {
    display: block;
    padding: 12px 13px;
    color: #dce8f4;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-navigation > a:hover {
    background: rgba(22, 184, 166, 0.1);
    color: var(--white);
}

/* =========================================================
   HERO SECTION (Parallax Fixed Background)
========================================================= */

.site-main {
    min-height: 100vh;
}

.hero-section {
    position: relative;
    min-height: 850px;
    padding: 180px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at 15% 35%, rgba(22,184,166,.12), transparent 30%), radial-gradient(circle at 85% 30%, rgba(30,100,180,.16), transparent 32%), #06172a;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.hero-badge, .section-label {
    color: #24d5c1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-badge {
    display: inline-flex;
    gap: 9px;
    padding: 10px 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 30px;
    background: rgba(255,255,255,.05);
}

.hero-content h1 {
    max-width: 750px;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -3px;
    font-weight: 800;
    color: #ffffff;
}

.hero-content h1 span, .section-heading h2 span, .about-content h2 span, .final-cta h2 span {
    color: var(--teal-light);
}

.hero-description {
    max-width: 680px;
    margin: 28px 0;
    color: #b8c8d8;
    font-size: 18px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 23px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    transition: .25s ease;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg,#16b8a6,#20c9bb);
    box-shadow: 0 15px 35px rgba(22,184,166,.22);
}

.primary-button:hover {
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
    color: white;
}

.secondary-button:hover {
    background: rgba(255,255,255,.09);
}

.hero-trust {
    margin-top: 35px;
    color: var(--muted);
    font-size: 13px;
}

.hero-trust span {
    color: white;
    font-weight: 800;
}

.hero-card {
    padding: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 28px;
    background: rgba(255,255,255,.05);
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.hero-card img {
    width: 100%;
    min-height: 470px;
    object-fit: cover;
    border-radius: 21px;
}

/* =========================================================
   STATS SECTION (4-Column Grid Fixed Layout)
========================================================= */

.stats-section {
    padding: 40px 0;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.stats-card, .stat-block, .stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.count-number, .stats-card h3, .stat-block .num {
    font-size: 32px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 8px;
}

/* =========================================================
   ABOUT US SECTION
========================================================= */

.about-section {
    position: relative;
    padding: 110px 20px 120px;
    background: #ffffff;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(22, 94, 72, 0.04);
    top: -180px;
    right: -150px;
    pointer-events: none;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    position: relative;
}

.about-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1c6b55;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.about-label::before {
    content: "";
    width: 38px;
    height: 2px;
    background: #1c6b55;
}

.about-content h2 {
    margin: 0 0 28px;
    color: #172b25;
    font-size: clamp(38px, 4.5vw, 58px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.about-content h2 span {
    display: block;
    color: #1c6b55;
}

.about-intro {
    max-width: 620px;
    margin-bottom: 18px;
    color: #34443f;
    font-size: 18px;
    line-height: 1.8;
}

.about-description {
    max-width: 620px;
    margin-bottom: 35px;
    color: #6b7b75;
    font-size: 15px;
    line-height: 1.9;
}

.about-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    background: #173f32;
    color: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(23, 63, 50, 0.15);
}

.about-button span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.about-button:hover {
    background: #23745c;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(23, 63, 50, 0.22);
}

.about-button:hover span {
    transform: translateX(5px);
}

.about-visual {
    position: relative;
    padding: 55px 45px 45px;
    min-height: 470px;
    background: #f6f9f8;
    border: 1px solid #e2ece8;
    border-radius: 20px;
    overflow: hidden;
}

.about-number {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.about-number span {
    font-size: 13px;
    color: #1c6b55;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-number div {
    width: 70px;
    height: 1px;
    background: #9bb8ad;
}

.about-quote h3 {
    margin: 0 0 16px;
    color: #18352c;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
}

.about-quote p {
    margin: 0;
    color: #71817b;
    font-size: 14.5px;
    line-height: 1.8;
}

.about-stats {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 45px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #dbe7e2;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.about-stat strong {
    color: #1c6b55;
    font-size: 32px;
    font-weight: 700;
}

.about-stat span {
    color: #63736d;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================================
   CONFERENCES & ACTIVE BANNER CARDS
========================================================= */

.conferences-section {
    padding: 110px 0;
    background: #050d19;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.conference-grid, .why-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}

.active-conferences-grid {
    width: 100%;
    max-width: 1040px;
    margin: 55px auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.active-conference-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 45px rgba(13, 46, 39, 0.18);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease, border-color 0.45s ease;
    isolation: isolate;
}

.active-conference-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #3fe0a7, #20a98a);
    z-index: 3;
}

.active-conference-card:hover {
    transform: translateY(-10px);
    border-color: rgba(63, 224, 167, 0.55);
    box-shadow: 0 30px 65px rgba(10, 51, 42, 0.28), 0 0 30px rgba(46, 201, 157, 0.12);
}

/* Vaccine & Catalysis Card Specific Text/Background Protection */
.active-conference-card.vaccine-card {
    background-image: linear-gradient(180deg, rgba(10, 42, 33, 0.94) 0%, rgba(10, 42, 33, 0.88) 100%), url('assets/images/vaccine-banner.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.active-conference-card .conference-main-content h3,
.active-conference-card .conference-main-content p,
.active-conference-card .conference-detail strong {
    color: #ffffff !important;
}

.active-conference-card .conference-main-content p {
    color: rgba(236, 247, 243, 0.9) !important;
}

.conference-card-content {
    position: relative;
    z-index: 5;
    height: 100%;
    padding: 31px 34px 30px;
    display: flex;
    flex-direction: column;
}

.conference-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 100px;
    color: #baf5df;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    background: rgba(26, 157, 122, 0.25);
    border: 1px solid rgba(79, 224, 177, 0.3);
    backdrop-filter: blur(10px);
}

.featured-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff8a3d;
    box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.15);
}

.conference-number {
    color: rgba(174, 238, 215, 0.6);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.conference-main-content h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.conference-details {
    display: flex;
    align-items: stretch;
    margin-top: 24px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.conference-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.detail-label {
    color: rgba(127, 231, 192, 0.85);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.detail-divider {
    width: 1px;
    margin: 0 22px;
    background: rgba(255,255,255,0.15);
}

.conference-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 21px;
}

.conference-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.conference-btn.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #20a98a, #29b999);
    box-shadow: 0 8px 20px rgba(23, 168, 132, 0.3);
}

.conference-btn.primary-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #28b997, #3dcaab);
}

.conference-btn.secondary-btn {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
}

.conference-btn.secondary-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.2);
}

/* =========================================================
   WHY SECTION & CTA
========================================================= */

.why-section { 
    background: #071a2f; 
    padding: 110px 0;
}

.why-grid { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 22px;
}

.why-card {
    padding: 30px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background: rgba(255,255,255,.035);
    transition: .25s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22,184,166,.3);
}

.why-icon {
    color: var(--teal-light);
    font-weight: 800;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.why-card p {
    color: #91a5b8;
    font-size: 14px;
}

.final-cta {
    padding: 110px 0;
    background: #050d19;
}

.cta-box {
    padding: 75px 50px;
    text-align: center;
    border: 1px solid rgba(22,184,166,.18);
    border-radius: 30px;
    background: radial-gradient(circle at center,rgba(22,184,166,.10),transparent 55%), rgba(255,255,255,.025);
}

.cta-box p {
    max-width: 700px;
    margin: 20px auto 30px;
    color: #b8c8d8;
}

.cta-box .hero-buttons {
    justify-content: center;
}

/* =========================================================
   FOOTER & UTILITIES
========================================================= */

.site-footer {
    background: #030b15;
    padding-top: 75px;
    padding-bottom: 30px;
}

.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 45px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.footer-grid p {
    color: #8298ab;
    font-size: 13.5px;
    line-height: 1.7;
}

.footer-grid h4 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 15px;
}

.footer-grid a {
    display: block;
    margin: 9px 0;
    color: #8fa4b8;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    padding-top: 25px;
    color: #657b8e;
    font-size: 12.5px;
}

.return-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9000;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    background: linear-gradient(135deg,#16b8a6,#20c9bb);
    color: white;
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .25s ease;
}

.return-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.return-to-top:hover {
    transform: translateY(-4px);
}

:focus-visible {
    outline: 2px solid var(--teal-light);
    outline-offset: 3px;
}

::selection {
    background: var(--teal);
    color: #ffffff;
}

/* =========================================================
   SCROLL REVEAL EFFECTS
========================================================= */

.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
    transform: translateX(-70px);
}

.reveal-right {
    transform: translateX(70px);
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
========================================================= */

@media (max-width: 1150px) {
    .nav-wrapper { gap: 12px; }
    .main-navigation { gap: 0; }
    .nav-link, .nav-dropdown-toggle { padding: 0 8px; font-size: 12px; }
    .nav-contact-link { display: none; }
    .nav-cta { padding: 11px 13px; }
    .brand-tagline { display: none; }
}

@media (max-width: 950px) {
    .main-navigation, .nav-actions { display: none; }
    .mobile-menu-button { display: flex; }
    .nav-wrapper { min-height: 68px; }
    .brand-name { font-size: 16px; }
}

@media (max-width: 900px) {
    .hero-container, .about-container, .active-conferences-grid { grid-template-columns: 1fr; }
    .hero-section { padding-top: 150px; }
    .stats-grid, .conference-grid, .why-grid, .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
    .site-header { top: 10px; }
    .container, .nav-wrapper, .mobile-navigation { width: calc(100% - 24px); }
    .nav-wrapper { min-height: 64px; padding: 8px 9px 8px 12px; border-radius: 17px; }
    .brand-logo, .brand-mark { width: 43px; height: 43px; }
    .brand-name { font-size: 14px; }
    .hero-content h1 { font-size: 45px; letter-spacing: -2px; }
    .stats-grid, .conference-grid, .why-grid, .footer-grid, .active-conferences-grid { grid-template-columns: 1fr; }
    .about-section, .conferences-section, .why-section, .final-cta { padding: 75px 0; }
    .cta-box { padding: 50px 22px; }
    .conference-card-content { padding: 25px 23px; }
    .conference-details { flex-direction: column; gap: 15px; }
    .detail-divider { display: none; }
    .conference-actions { flex-direction: column; align-items: stretch; }
    .conference-btn { width: 100%; }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ACTIVE CONFERENCES — PREMIUM TITLE & DESIGN UPGRADE
   Safe addition for existing HTML
========================================================= */


/* ---------------------------------------------------------
   SECTION TITLE
--------------------------------------------------------- */

.active-conferences-intro {
    padding: 120px 0 55px;
    background: #ffffff;
}

.active-conferences-intro-inner {
    width: min(90%, 1320px);
    margin: 0 auto;
}

.active-conferences-kicker {
    display: flex;
    align-items: center;
    gap: 13px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #64748b;

    margin-bottom: 35px;
}

.kicker-line {
    display: block;

    width: 42px;
    height: 1px;

    background: #059669;
}

.active-conferences-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 80px;

    align-items: end;
}

.section-count {
    display: block;

    margin-bottom: 20px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #059669;
}

.active-conferences-heading-row h2 {
    margin: 0;

    max-width: 900px;

    font-size: clamp(44px, 5.5vw, 84px);
    line-height: 1.02;

    letter-spacing: -3px;

    font-weight: 800;

    color: #0f172a;
}

.active-conferences-heading-row h2 span {
    color: #059669;
    font-style: italic;
    font-weight: 500;
}

.active-conferences-heading-row > p {
    margin: 0 0 8px;

    max-width: 400px;

    font-size: 16px;
    line-height: 1.8;

    color: #64748b;
}


/* =========================================================
   EXISTING GRID — SAFE VISUAL IMPROVEMENT
========================================================= */

.active-conferences-grid {

    width: min(90%, 1320px);

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;

    padding-bottom: 130px;
}


/* =========================================================
   PREMIUM CONFERENCE CARDS
========================================================= */

.active-conference-card {

    position: relative;

    min-height: 620px;

    display: flex;

    overflow: hidden;

    border-radius: 24px;

    background-color: #063d2f;

    background-size: cover;

    background-position: center;

    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.10);

    isolation: isolate;

    transition:
        transform 0.5s cubic-bezier(.22,.61,.36,1),
        box-shadow 0.5s cubic-bezier(.22,.61,.36,1);
}


/* Vaccine card background */

.vaccine-card {

    background-image:
        linear-gradient(
            135deg,
            rgba(8, 44, 66, 0.94),
            rgba(8, 104, 113, 0.78)
        ),
        url('assets/images/vaccine-banner.jpg');

    background-size: cover;

    background-position: center;

}


/* Dark overlay */

.active-conference-card::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.02) 0%,
            rgba(0,0,0,0.12) 45%,
            rgba(0,0,0,0.60) 100%
        );

    pointer-events: none;
}


/* Premium lighting */

.active-conference-card::before {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -150px;
    right: -100px;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.12);

    filter: blur(50px);

    z-index: -1;

    transition:
        transform 0.8s ease,
        opacity 0.8s ease;
}


@media (hover: hover) {

    .active-conference-card:hover {

        transform: translateY(-10px);

        box-shadow:
            0 35px 80px rgba(15,23,42,0.18);

    }

    .active-conference-card:hover::before {

        transform: scale(1.3);

    }

}


/* =========================================================
   CARD CONTENT
========================================================= */

.conference-card-content {

    width: 100%;

    min-height: 620px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 38px;

    position: relative;

    z-index: 2;

}


/* =========================================================
   TOP
========================================================= */

.conference-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.featured-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 13px;

    border-radius: 100px;

    background:
        rgba(255,255,255,0.12);

    border:
        1px solid rgba(255,255,255,0.16);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.4px;

    color: #ffffff;

}


.featured-dot {

    width: 7px;
    height: 7px;

    display: block;

    border-radius: 50%;

    background: #65f2bd;

    box-shadow:
        0 0 0 5px rgba(101,242,189,0.10);

}


.conference-number {

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;

    color:
        rgba(255,255,255,0.75);

}


/* =========================================================
   MAIN TEXT
========================================================= */

.conference-main-content {

    margin-top: auto;

    padding-top: 80px;

}


.conference-main-content h3 {

    margin: 0;

    max-width: 560px;

    font-size:
        clamp(34px, 3.3vw, 56px);

    line-height: 1.08;

    letter-spacing: -2px;

    font-weight: 800;

    color: #ffffff;

}


.conference-main-content p {

    max-width: 530px;

    margin: 20px 0 0;

    font-size: 15px;

    line-height: 1.75;

    color:
        rgba(255,255,255,0.75);

}


/* =========================================================
   DETAILS
========================================================= */

.conference-details {

    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 32px;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,0.16);

}


.conference-detail {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.detail-label {

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.8px;

    color:
        rgba(255,255,255,0.48);

}


.conference-detail strong {

    font-size: 14px;

    font-weight: 600;

    color: #ffffff;

}


.detail-divider {

    width: 1px;
    height: 40px;

    background:
        rgba(255,255,255,0.16);

}


/* =========================================================
   ACTION BUTTONS
========================================================= */

.conference-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;

}


.conference-btn {

    min-height: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 0 20px;

    border-radius: 100px;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;

}


.primary-btn {

    background: #ffffff;

    color: #0f172a;

}


.primary-btn:hover {

    transform: translateY(-3px);

    background: #d9fff0;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.20);

}


.primary-btn span {

    display: inline-block;

    font-size: 18px;

    transition: transform 0.3s ease;

}


.primary-btn:hover span {

    transform: translateX(4px);

}


.secondary-btn {

    color: #ffffff;

    background:
        rgba(255,255,255,0.10);

    border:
        1px solid rgba(255,255,255,0.25);

    backdrop-filter: blur(8px);

}


.secondary-btn:hover {

    transform: translateY(-3px);

    background:
        rgba(255,255,255,0.20);

}


/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .active-conferences-intro {
        padding-top: 90px;
    }

    .active-conferences-heading-row {

        grid-template-columns: 1fr;

        gap: 28px;

    }

    .active-conferences-grid {

        grid-template-columns: 1fr;

        max-width: 700px;

    }

    .active-conference-card {

        min-height: 600px;

    }

}


@media (max-width: 600px) {

    .active-conferences-intro {

        padding:
            75px 0 40px;

    }

    .active-conferences-heading-row h2 {

        font-size: 45px;

        letter-spacing: -2px;

    }

    .active-conferences-heading-row > p {

        font-size: 15px;

    }

    .active-conferences-grid {

        width: min(92%, 1320px);

        gap: 18px;

        padding-bottom: 80px;

    }

    .active-conference-card {

        min-height: 570px;

        border-radius: 20px;

    }

    .conference-card-content {

        min-height: 570px;

        padding: 25px;

    }

    .conference-main-content {

        padding-top: 60px;

    }

    .conference-main-content h3 {

        font-size: 34px;

        letter-spacing: -1.5px;

    }

    .conference-main-content p {

        font-size: 14px;

        line-height: 1.7;

    }

    .conference-details {

        gap: 15px;

        flex-wrap: wrap;

    }

    .detail-divider {

        display: none;

    }

    .conference-detail {

        width: 100%;

    }

    .conference-actions {

        margin-top: 25px;

    }

    .conference-btn {

        flex: 1;

        min-width: 130px;

        padding: 0 16px;

    }

}
/* =========================================================
   MARCUS SCIENCE GROUP
   FEATURED CONFERENCES
   PREMIUM MINIMAL DESIGN
========================================================= */


/* MAIN SECTION */

.msg-featured-conferences {

    position: relative;

    width: 100%;

    background: #f7f8f7;

    padding: 120px 0 130px;

    overflow: hidden;

}


.msg-featured-container {

    width: min(90%, 1340px);

    margin: 0 auto;

}


/* =========================================================
   HEADER
========================================================= */

.msg-featured-header {

    display: grid;

    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);

    gap: 100px;

    align-items: end;

    padding-bottom: 70px;

    border-bottom: 1px solid rgba(20, 35, 45, 0.12);

}


/* =========================================================
   LEFT AREA
========================================================= */

.msg-featured-label {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 32px;

    color: #24725d;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2.2px;

    text-transform: uppercase;

}


.msg-label-line {

    display: block;

    width: 38px;

    height: 2px;

    background: #2c8c70;

}


.msg-featured-title-area h2 {

    margin: 0;

    color: #16283a;

    font-size: clamp(52px, 6.3vw, 100px);

    line-height: 0.95;

    letter-spacing: -4.5px;

    font-weight: 750;

}


.msg-featured-title-area h2 span {

    color: #2c8c70;

    font-style: italic;

    font-weight: 450;

}


/* =========================================================
   RIGHT AREA
========================================================= */

.msg-featured-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding-bottom: 5px;

}


.msg-featured-info p {

    margin: 0;

    max-width: 410px;

    color: #66717d;

    font-size: 16px;

    line-height: 1.85;

}


/* =========================================================
   EXPLORE BUTTON
========================================================= */

.msg-explore-conferences-btn {

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    min-width: 245px;

    margin-top: 34px;

    padding: 7px 8px 7px 23px;

    border-radius: 100px;

    background: #1d705a;

    color: #ffffff !important;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.35s cubic-bezier(.22,.61,.36,1),
        box-shadow 0.35s ease,
        background 0.35s ease;

}


.msg-explore-conferences-btn:hover {

    transform: translateY(-4px);

    background: #155b49;

    color: #ffffff !important;

    box-shadow:
        0 20px 40px rgba(18, 90, 70, 0.22);

}


.msg-explore-arrow {

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #1d705a;

    font-size: 20px;

    transition:
        transform 0.4s cubic-bezier(.22,.61,.36,1);

}


.msg-explore-conferences-btn:hover
.msg-explore-arrow {

    transform: translateY(3px);

}


/* =========================================================
   CONFERENCE GRID
========================================================= */

.msg-conference-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;

    margin-top: 55px;

}


/* =========================================================
   CONFERENCE CARD
========================================================= */

.msg-conference-card {

    position: relative;

    min-height: 670px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    border-radius: 28px;

    background-color: #123d32;

    background-size: cover;

    background-position: center;

    isolation: isolate;

    box-shadow:
        0 18px 45px rgba(15, 35, 40, 0.10);

    transition:
        transform 0.55s cubic-bezier(.22,.61,.36,1),
        box-shadow 0.55s cubic-bezier(.22,.61,.36,1);

}


@media (hover: hover) and (pointer: fine) {

    .msg-conference-card:hover {

        transform: translateY(-10px);

        box-shadow:
            0 35px 75px rgba(15, 35, 40, 0.18);

    }

}


/* =========================================================
   CARD OVERLAY
========================================================= */

.msg-card-overlay {

    position: absolute;

    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0.55) 100%
        );

}


/* =========================================================
   TOP CARD AREA
========================================================= */

.msg-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 34px 36px 0;

}


.msg-status-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    color: #ffffff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.msg-status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #69e7b8;

    box-shadow:
        0 0 0 5px rgba(105, 231, 184, 0.12);

}


.msg-card-number {

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

}


/* =========================================================
   CARD BODY
========================================================= */

.msg-card-body {

    width: 100%;

    box-sizing: border-box;

    padding: 100px 36px 36px;

    margin-top: auto;

}


.msg-card-category {

    margin-bottom: 20px;

    color: #9ce8c9;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.msg-card-body h3 {

    margin: 0;

    max-width: 570px;

    color: #ffffff;

    font-size: clamp(35px, 3.3vw, 56px);

    line-height: 1.08;

    letter-spacing: -2.3px;

    font-weight: 750;

}


.msg-card-body p {

    max-width: 520px;

    margin: 20px 0 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 15px;

    line-height: 1.8;

}


/* =========================================================
   META INFORMATION
========================================================= */

.msg-conference-meta {

    display: flex;

    align-items: center;

    gap: 25px;

    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid rgba(255, 255, 255, 0.18);

}


.msg-meta-item {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.msg-meta-item span {

    color: rgba(255, 255, 255, 0.52);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.7px;

}


.msg-meta-item strong {

    color: #ffffff;

    font-size: 14px;

    font-weight: 650;

}


.msg-meta-divider {

    width: 1px;

    height: 42px;

    background:
        rgba(255, 255, 255, 0.20);

}


/* =========================================================
   BUTTONS
========================================================= */

.msg-card-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;

}


.msg-primary-button {

    min-height: 52px;

    display: inline-flex;

    align-items: center;

    gap: 25px;

    padding: 0 9px 0 22px;

    border-radius: 100px;

    background: #ffffff;

    color: #18322e !important;

    text-decoration: none;

    font-size: 13px;

    font-weight: 750;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

}


.msg-primary-button b {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #e4f5ee;

    color: #1c705a;

    font-size: 17px;

    transition:
        transform 0.3s ease;

}


.msg-primary-button:hover {

    transform: translateY(-3px);

    color: #18322e !important;

    background: #effaf5;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.18);

}


.msg-primary-button:hover b {

    transform: rotate(45deg);

}


.msg-secondary-button {

    min-height: 52px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 22px;

    border: 1px solid rgba(255, 255, 255, 0.30);

    border-radius: 100px;

    background: rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(8px);

    color: #ffffff !important;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

}


.msg-secondary-button:hover {

    transform: translateY(-3px);

    background: rgba(255, 255, 255, 0.20);

    color: #ffffff !important;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .msg-featured-header {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .msg-conference-grid {

        grid-template-columns: 1fr;

        max-width: 760px;

        margin-left: auto;

        margin-right: auto;

    }


    .msg-conference-card {

        min-height: 650px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .msg-featured-conferences {

        padding: 80px 0;

    }


    .msg-featured-container {

        width: min(90%, 1340px);

    }


    .msg-featured-header {

        gap: 30px;

        padding-bottom: 45px;

    }


    .msg-featured-label {

        margin-bottom: 22px;

        font-size: 9px;

    }


    .msg-featured-title-area h2 {

        font-size: clamp(48px, 14vw, 70px);

        letter-spacing: -2.8px;

    }


    .msg-featured-info p {

        font-size: 15px;

        line-height: 1.75;

    }


    .msg-explore-conferences-btn {

        width: 100%;

        box-sizing: border-box;

        min-width: auto;

    }


    .msg-conference-grid {

        gap: 20px;

        margin-top: 40px;

    }


    .msg-conference-card {

        min-height: 600px;

        border-radius: 22px;

    }


    .msg-card-top {

        padding: 25px 25px 0;

    }


    .msg-status-badge {

        font-size: 8px;

        padding: 8px 11px;

    }


    .msg-card-body {

        padding: 80px 25px 25px;

    }


    .msg-card-body h3 {

        font-size: 35px;

        letter-spacing: -1.7px;

    }


    .msg-card-body p {

        font-size: 14px;

    }


    .msg-conference-meta {

        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .msg-meta-divider {

        display: none;

    }


    .msg-card-buttons {

        display: grid;

        grid-template-columns: 1fr;

    }


    .msg-primary-button,
    .msg-secondary-button {

        width: 100%;

        box-sizing: border-box;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .msg-conference-card,
    .msg-primary-button,
    .msg-secondary-button,
    .msg-explore-conferences-btn,
    .msg-explore-arrow,
    .msg-primary-button b {

        transition: none !important;

    }

}
/* =========================================
   MARCUS SCIENCE GROUP
   CONFERENCE GRID SECTION
========================================= */

.msg-active-events-section {
    width: 100%;
    padding: 100px 0 120px;
    background: #f7f8f7;
}

.msg-events-container {
    width: min(90%, 1320px);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.msg-events-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 45px;
}

.msg-events-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #267b63;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.msg-events-heading h2 {
    margin: 0;

    color: #17233a;

    font-size: clamp(38px, 4vw, 58px);
    font-weight: 750;

    letter-spacing: -2px;
}


/* =========================================
   EXPLORE BUTTON
========================================= */

.msg-events-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 14px 22px;

    border-radius: 50px;

    background: #1c705b;

    color: #ffffff !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.msg-events-view-btn:hover {
    transform: translateY(-3px);

    background: #145642;

    color: #ffffff !important;

    box-shadow: 0 15px 30px rgba(20, 86, 66, 0.2);
}


/* =========================================
   CONFERENCE GRID
========================================= */

.msg-events-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================
   CARD
========================================= */

.msg-event-card {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(20, 40, 50, 0.08);

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(20, 40, 50, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.msg-event-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 55px rgba(20, 40, 50, 0.12);
}


/* =========================================
   IMAGE
========================================= */

.msg-event-image-link {
    display: block;

    text-decoration: none;
}

.msg-event-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e9eeee;
}

.msg-event-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.7s cubic-bezier(.22,.61,.36,1);
}

.msg-event-card:hover .msg-event-image img {
    transform: scale(1.06);
}


/* =========================================
   CARD CONTENT
========================================= */

.msg-event-content {
    position: relative;

    padding: 28px 30px 30px;
}

.msg-event-number {
    position: absolute;

    top: 25px;
    right: 28px;

    color: #2c8c70;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;
}

.msg-event-content h3 {
    margin: 0;

    padding-right: 50px;

    min-height: 68px;

    color: #17233a;

    font-size: 22px;
    line-height: 1.35;

    font-weight: 700;
}


/* =========================================
   EVENT DETAILS
========================================= */

.msg-event-details {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;

    margin-top: 28px;
    padding-top: 22px;

    border-top:
        1px solid rgba(20, 40, 50, 0.08);
}

.msg-event-detail {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.msg-detail-title {
    color: #7a858d;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.msg-event-detail strong {
    color: #263845;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   BUTTONS
========================================= */

.msg-event-actions {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}

.msg-event-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    flex: 1;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 50px;

    background: #1c705b;

    color: #ffffff !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.msg-event-primary-btn:hover {
    background: #145642;

    color: #ffffff !important;
}

.msg-event-primary-btn span {
    font-size: 18px;

    transition: transform 0.3s ease;
}

.msg-event-primary-btn:hover span {
    transform: translateX(4px);
}


.msg-event-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border: 1px solid #d9e1df;

    border-radius: 50px;

    color: #1c705b !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.3s ease;
}

.msg-event-register-btn:hover {
    background: #edf7f3;

    border-color: #b9dbcf;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .msg-events-grid {
        grid-template-columns: 1fr;
    }

    .msg-event-card {
        max-width: 720px;
        width: 100%;

        margin: 0 auto;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .msg-active-events-section {
        padding: 75px 0 85px;
    }

    .msg-events-container {
        width: min(90%, 1320px);
    }

    .msg-events-heading {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 32px;
    }

    .msg-events-heading h2 {
        font-size: 42px;
    }

    .msg-event-content {
        padding: 23px;
    }

    .msg-event-number {
        top: 23px;
        right: 23px;
    }

    .msg-event-content h3 {
        font-size: 20px;
    }

    .msg-event-details {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .msg-event-actions {
        flex-direction: column;
    }

    .msg-event-primary-btn,
    .msg-event-register-btn {
        width: 100%;

        box-sizing: border-box;
    }

}
/* =========================================
   3 CONFERENCES PER ROW - COMPACT VERSION
========================================= */

@media (min-width: 901px) {

    /* Container slightly wider */
    .msg-events-container {
        width: min(94%, 1500px);
    }


    /* 3 Cards in one row */
    .msg-events-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }


    /* Compact content */
    .msg-event-content {
        padding: 20px 22px 22px;
    }


    /* Smaller conference number */
    .msg-event-number {
        top: 20px;
        right: 22px;
        font-size: 11px;
    }


    /* Compact title */
    .msg-event-content h3 {
        min-height: 72px;

        padding-right: 38px;

        font-size: 18px;
        line-height: 1.4;
    }


    /* Details */
    .msg-event-details {
        gap: 12px;

        margin-top: 20px;
        padding-top: 18px;
    }


    .msg-event-detail strong {
        font-size: 12px;
    }


    .msg-detail-title {
        font-size: 8px;
    }


    /* Smaller buttons */
    .msg-event-actions {
        gap: 8px;
        margin-top: 22px;
    }


    .msg-event-primary-btn {
        min-height: 44px;

        padding: 0 14px;

        font-size: 11px;
    }


    .msg-event-register-btn {
        min-height: 44px;

        padding: 0 16px;

        font-size: 11px;
    }

}