/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    /* NEW THEME: Clinical Trials & Biotech Innovation */
    --primary-color: #005B6F;        /* Petrol Blue - Professional & Scientific */
    --secondary-color: #17A2B8;      /* Modern Cyan - Innovation & Trust */
    --button-color: #005B6F;         
    --button-hover: #004452;         
    --text-dark: #2C3E50;
    --text-light: #ffffff;
    
    /* Chart Colors - High Contrast Scientific Palette */
    --chart-csuite: #ffffff;        
    --chart-vps: #00ffff;           /* Seafoam Green - Health */
    --chart-managers: #ffcc00;      /* Sky Blue - Trust */
    --chart-sponsors: #ff9900;      /* Scientific Yellow - Insight */
    --chart-others: #ff007f;        /* Soft Orange - Energy */
    
    /* Geo Chart specific variables */
    --chart-geo-1: #ff007f;         /* Western Europe */
    --chart-geo-2: #ff9900;         /* Central Europe */
    --chart-geo-3: #ffcc00;         /* Northern Europe */
    --chart-geo-4: #00ffff;         /* Southern & Eastern Europe */
    --chart-geo-5: #ADE8F4;         /* North America */
    --chart-geo-6: #ffffff;         /* Others */
}

body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

/* --- Typography Constraints --- */
h1, h2, h3, h4, h5, h6, 
.display-1, .display-2, .display-3, .display-4, .display-5,
.section-title-underlined, .gallery-heading, .showcase-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 44px !important; 
    line-height: 1.2;
    color: var(--primary-color);
}

h3 { font-size: 32px !important; }
h4 { font-size: 24px !important; }
h5 { font-size: 20px !important; }
h6 { font-size: 18px !important; }

p, .lead, .nav-link, li, span {
    font-size: 17px !important;
}

/* Force all titles and subtitles to white in background-image sections */
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5,
.stats-section h2, .stats-section h3, .stats-section h4, .stats-section h5,
.who-should-attend-section h2, .who-should-attend-section h3, .who-should-attend-section h4, .who-should-attend-section h5,
.reasons-section h2, .reasons-section h3, .reasons-section h4, .reasons-section h5,
.registration-section h2, .registration-section h3, .registration-section h4, .registration-section h5, .registration-title,
.showcase-section h2, .showcase-title {
    color: #ffffff !important;
}

/* Ensure descriptive body text also stays white in these sections */
.hero-section p, .hero-section span,
.stats-section p, .stats-section span,
.who-should-attend-section p, .who-should-attend-section span,
.reasons-section p, .reasons-section span,
.registration-section p, .registration-section span,
.showcase-section p, .showcase-section span {
    color: #ffffff !important;
}

/* --- Global Color Scheme & Buttons --- */
.btn, .btn-primary, .btn-secondary, .btn-warning, .btn-showcase, .btn-brochure {
    background-color: var(--button-color) !important;
    border: 1px solid var(--button-color) !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover, .btn-primary:hover, .btn-showcase:hover {
    background-color: var(--button-hover) !important;
    border-color: var(--button-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 91, 111, 0.2);
}

.text-primary, .text-teal, .icon-box i, .speaker-name {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

section {
    padding: 80px 0;
}

/* --- Navbar --- */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: #ffffff !important; 
    padding: 0; 
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px; 
    width: auto;      
    padding: 2px 0;   
}

.nav-link {
    color: #5e5e5e !important; 
    font-size: 16px !important;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important; 
    backdrop-filter: blur(5px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-toggler {
    border-color: rgba(0,0,0,0.1) !important;
    margin-right: 15px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 110vh;
    background: url('images/bfsibanners.webp') no-repeat center center;
    background-size: cover;
    position: relative;
    color: #fff !important;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0, 91, 111, 0.85), rgba(23, 162, 184, 0.85));
}
.hero-section .container {
    position: relative;
    z-index: 2;
}
.timer-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    min-width: 90px;
    margin: 0 10px;
    border: 1px solid rgba(255,255,255,0.2);
}
.timer-number { font-size: 36px !important; font-weight: 700; }
.timer-label { font-size: 14px !important; text-transform: uppercase; }

/* --- About & Services --- */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #E0F2F1; /* Soft Mint background */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(90deg, rgba(0, 91, 111, 0.85), rgba(23, 162, 184, 0.85)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
}

/* =======================================================================
   --- Who Should Attend Section (Complete Charts & Layout) --- 
   ======================================================================= */

.who-should-attend-section {
    background: linear-gradient(90deg, rgba(0, 91, 111, 0.90), rgba(23, 162, 184, 0.90)),
                url('images/bfsibanners.webp') no-repeat center center;
    background-size: cover;
    color: #ffffff !important;
    overflow: hidden;
}

/* Force headings to white visibility */
.who-should-attend-section h2, 
.who-should-attend-section h5 {
    color: #ffffff !important;
}

.who-should-attend-section .section-title-underline {
    width: 80px; height: 4px;
    background-color: #fff;
    display: inline-block;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 380px; 
    height: 320px; 
    margin: 0 auto 15px auto; 
}

.donut-chart {
    position: absolute;
    left: 0; top: 0;
    width: 320px; height: 320px;
}

.chart-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.chart-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    z-index: 10;
    border: 2px solid rgba(255,255,255,0.1);
}

/* --- Seniority Chart Rings (4 Levels) --- */
.ring-others { 
    width: 300px; height: 300px; 
    background: conic-gradient(var(--chart-others) 0% 30%, rgba(255,255,255,0.02) 30% 100%); 
    z-index: 2; 
}
.ring-sponsors { 
    width: 260px; height: 260px; 
    background: conic-gradient(var(--chart-sponsors) 0% 43%, rgba(255,255,255,0.04) 43% 100%); 
    z-index: 3; 
}
.ring-managers { 
    width: 220px; height: 220px; 
    background: conic-gradient(var(--chart-managers) 0% 22%, rgba(255,255,255,0.06) 22% 100%); 
    z-index: 4; 
}
.ring-vps { 
    width: 180px; height: 180px; 
    background: conic-gradient(var(--chart-vps) 0% 5%, rgba(255,255,255,0.08) 5% 100%); 
    z-index: 5; 
}

/* --- Geo Chart Rings (6 Regions) --- */
.ring-geo-1 { width: 300px; height: 300px; background: conic-gradient(var(--chart-geo-1) 0% 37%, rgba(255,255,255,0.02) 37% 100%); z-index: 1; }
.ring-geo-2 { width: 260px; height: 260px; background: conic-gradient(var(--chart-geo-2) 0% 25%, rgba(255,255,255,0.04) 25% 100%); z-index: 2; }
.ring-geo-3 { width: 220px; height: 220px; background: conic-gradient(var(--chart-geo-3) 0% 15%, rgba(255,255,255,0.06) 15% 100%); z-index: 3; }
.ring-geo-4 { width: 180px; height: 180px; background: conic-gradient(var(--chart-geo-4) 0% 10%, rgba(255,255,255,0.08) 10% 100%); z-index: 4; }
.ring-geo-5 { width: 140px; height: 140px; background: conic-gradient(var(--chart-geo-5) 0% 10%, rgba(255,255,255,0.1) 10% 100%); z-index: 5; }
.ring-geo-6 { width: 110px; height: 110px; background: conic-gradient(var(--chart-geo-6) 0% 3%, rgba(255,255,255,0.12) 3% 100%); z-index: 6; }

/* --- Markers Positioning --- */
.chart-markers-right {
    position: absolute;
    right: 0; top: 0;
    height: 320px; width: 60px;
    display: block;
}

.marker-item {
    position: absolute; right: 0;
    display: flex; align-items: center;
    transform: translateY(-50%); 
}

.marker-line {
    width: 25px; height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
    margin-right: 8px;
}

.marker-text {
    font-weight: 700; font-size: 16px; line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Seniority Coordinates */
.markers-seniority .pos-1 { top: 20px; } 
.markers-seniority .pos-2 { top: 40px; }
.markers-seniority .pos-3 { top: 60px; }
.markers-seniority .pos-4 { top: 80px; } 

/* Geo Coordinates (Added 6th Position) */
.markers-geo .pos-1 { top: 20px; } 
.markers-geo .pos-2 { top: 40px; }
.markers-geo .pos-3 { top: 60px; }
.markers-geo .pos-4 { top: 80px; }
.markers-geo .pos-5 { top: 100px; } 
.markers-geo .pos-6 { top: 120px; } /* Corrected for 6 regions */

/* --- Legends --- */
.chart-legend-bottom {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 8px; width: fit-content; margin: 0 auto; z-index: 10;
}

.legend-item {
    display: flex; align-items: center; font-size: 14px; font-weight: 500; text-align: left;
    color: #ffffff;
}

.legend-color {
    width: 12px; height: 12px; border-radius: 50%; margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 5px rgba(0,0,0,0.2); flex-shrink: 0;
}

/* Legend Mapping */
.color-others { background-color: var(--chart-others) !important; }
.color-sponsors { background-color: var(--chart-sponsors) !important; }
.color-managers { background-color: var(--chart-managers) !important; }
.color-vps { background-color: var(--chart-vps) !important; }

.color-geo-1 { background-color: var(--chart-geo-1) !important; }
.color-geo-2 { background-color: var(--chart-geo-2) !important; }
.color-geo-3 { background-color: var(--chart-geo-3) !important; }
.color-geo-4 { background-color: var(--chart-geo-4) !important; }
.color-geo-5 { background-color: var(--chart-geo-5) !important; }
.color-geo-6 { background-color: var(--chart-geo-6) !important; }

/* --- Attendee List Box --- */
.attendee-list-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.attendee-list-box::-webkit-scrollbar { width: 6px; }
.attendee-list-box::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.attendee-list-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 10px; }

.attendee-list { margin: 0; }
.attendee-list li { 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    font-size: 15px !important; 
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}
.attendee-list li:last-child { border-bottom: none; }
.attendee-list li i { color: var(--secondary-color); font-size: 12px; margin-right: 10px; }

/* --- Responsiveness --- */
@media (max-width: 991px) {
    .who-should-attend-section .col-lg-4 { margin-bottom: 4rem !important; }
    .who-should-attend-section .col-lg-4:last-child { margin-bottom: 0 !important; }
    .chart-legend-bottom { align-items: center; }
    .legend-item { text-align: center; }
}

@media (max-width: 420px) {
    .chart-container { transform: scale(0.85); transform-origin: center top; margin-bottom: -30px !important; }
    .legend-item { font-size: 13px; }
}

/* --- Speakers --- */
.speaker-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%; 
    text-align: center;
    border: 1px solid #eee;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.speaker-content {
    padding: 15px 15px 15px 15px;
}

.speaker-image-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px auto;
    border: 4px solid var(--primary-color);
}

.speaker-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-name {
    font-size: 19px !important;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
}

.speaker-title {
    font-size: 14px !important;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: 500;
    min-height: 40px;
}

.speaker-company {
    font-size: 15px !important;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.speaker-linkedin {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #0077b5;
    text-decoration: none;
    border: 1px solid #0077b5;
    padding: 6px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.speaker-linkedin:hover {
    background-color: #0077b5;
    color: #fff;
}

/* --- Sponsors --- */
#sponsors {
    background-color: #fff;
    color: #000;
}

#sponsors .section-title-underlined {
    color: var(--primary-color) !important;
    font-weight: 800;
}
#sponsors .section-title-underlined::after {
    background-color: var(--primary-color) !important;
}

.company-logo-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.company-logo {
    background-color: #ffffff;
    width: 100%;
    height: 110px;
    border-radius: 15px;
    object-fit: contain; 
    padding: 10px;
    border: 1px solid #f0f0f0; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    backface-visibility: hidden;
}

.company-logo-link:hover .company-logo {
    transform: translateY(-5px) scale(1.08); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* --- Agenda --- */
.section-title-underlined {
    color: var(--primary-color);
    padding-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title-underlined::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background-color: var(--primary-color);
}

.custom-agenda-tabs .nav-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    margin: 0 5px;
}
.custom-agenda-tabs .nav-link.active {
    background-color: var(--secondary-color) !important;
}

.agenda-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.agenda-marker {
    width: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.agenda-content {
    flex-grow: 1;
}

.dot {
    width: 20px; 
    height: 20px; 
    border-radius: 50%;
    box-sizing: border-box;
}

.dot.hollow { 
    background-color: transparent; 
    border: 3px solid var(--primary-color);
}

.dot.solid { 
    background-color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.agenda-card {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-radius: 8px;
    width: 100%;
}

.agenda-card .time { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.agenda-card .title {
    font-weight: 400;
    font-size: 1rem;
    color: #000;
}

.card-break { background-color: #f9f9f9; }

/* --- Gallery --- */
.gallery-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    grid-template-rows: 250px 250px;
    gap: 15px;
}

.gallery-slot {
    background-color: #ddd;
    border-radius: 10px;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

.slot-1 { grid-column: 1; grid-row: 1 / span 2; } 
.slot-2 { grid-column: 2; grid-row: 1; }          
.slot-3 { grid-column: 2; grid-row: 2; }          
.slot-4 { grid-column: 3; grid-row: 1 / span 2; } 


/* --- Showcase --- */
.showcase-section {
    padding: 0 !important;
    background-image: url('images/ctn-showcase.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.showcase-content { 
    position: relative; 
    z-index: 2; 
    padding: 80px 0; 
}

.showcase-image-wrapper { 
    position: relative; 
    z-index: 2; 
}

/* --- Testimonials --- */
#testimonials {
    background-color: #f9f9f9;
}

#testimonials .section-title-underlined {
    color: var(--primary-color) !important;
}

.testimonial-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial-text {
    font-size: 22px !important;
    color: #2c3e50;
    line-height: 1.6;
    display: inline;
    font-weight: 400;
}

.quote-icon-start, .quote-icon-end {
    color: #aebfd6;
    font-size: 40px;
    vertical-align: top;
    opacity: 0.8;
}

.quote-icon-start { margin-right: 15px; }
.quote-icon-end { margin-left: 15px; vertical-align: bottom; }

.testimonial-author h5 {
    color: #000;
    font-size: 18px !important;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 15px !important;
    font-weight: 500;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) grayscale(100); 
    background-size: 100%, 100%;
}

.carousel-control-prev, .carousel-control-next { width: 5%; }

/* --- Reasons Section --- */
.reasons-section {
    background: linear-gradient(90deg, rgba(0, 91, 111, 0.85), rgba(23, 162, 184, 0.85)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
}
.reason-icon { color: #fff; opacity: 0.8; }

/* --- Venue Section --- */
.venue-image {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: cover;
    min-height: 300px;
}

.venue-details { padding-left: 20px; }
.venue-details p {
    font-size: 17px !important;
    margin-bottom: 15px;
    line-height: 1.6;
}

.venue-details strong {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 5px;
}

@media (max-width: 991px) {
    .venue-details { padding-left: 0; text-align: center; }
}

/* --- Registration --- */
.registration-section {
    background: linear-gradient(90deg, rgba(0, 91, 111, 0.85), rgba(23, 162, 184, 0.85)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
    padding-bottom: 80px;
}

.registration-title { color: #fff !important; }
.registration-section .section-title-underlined::after { background-color: #fff !important; }

.registration-card {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.custom-input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.custom-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 91, 111, 0.2);
    background-color: #fff;
}

.btn-submit {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.btn-submit:hover {
    background-color: #004452 !important; 
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) { .registration-card { padding: 30px 20px; } }

/* --- Footer --- */
.social-link {
    color: #555;
    transition: all 0.3s ease;
    display: inline-block;
}
.social-link:hover { color: var(--primary-color) !important; transform: translateY(-3px); }
.social-link i { font-size: 24px; }

.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
}
.site-footer h3, .site-footer h5 { color: #fff; }
.footer-divider { border-color: var(--primary-color); }
.contact-list i { color: var(--primary-color); margin-right: 10px; }

@media (max-width: 768px) {
    h1, h2, .display-2 { font-size: 32px !important; }
    .gallery-wrapper { grid-template-columns: 1fr; grid-template-rows: auto; }
    .slot-1, .slot-2, .slot-3, .slot-4 { grid-column: auto; grid-row: auto; height: 250px; }
}