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

:root {
    /* NEW THEME: Pacific Bio-Precision (Exclusive to CTNWest) */
    --primary-color: #97b838;
    --secondary-color: #5da78e;
    --button-color: #97b838;
    --button-hover: #5da78e;
    --text-dark: #000000;
    --text-light: #ffffff;
    
    /* Chart Colors - Professional Technical Gradient (6 Levels) */
    --chart-geo-1: #ff007f;         /* Western Europe: 37% */
    --chart-geo-2: #ff9900;         /* Central Europe: 25% */
    --chart-geo-3: #ffcc00;         /* Northern Europe: 15% */
    --chart-geo-4: #00ffff;         /* Southern & Eastern Europe: 10% */
    --chart-geo-5: #ADE8F4;         /* North America: 10% */
    --chart-geo-6: #ffffff;         /* Others: 3% */

    /* Map original seniority names to Pacific Palette */
    --chart-others: #ff007f;
    --chart-sponsors: #ff9900;
    --chart-managers: #ffcc00;
    --chart-vps: #00ffff;
    --chart-csuite: #ADE8F4;
}

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; /* Increased to bold for medical authority */
    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;
}

/* =======================================================================
   --- SECTION OVERRIDES (White Headings for Dark Backgrounds) --- 
   ======================================================================= */
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section p,
.stats-section h2, .stats-section h3, .stats-section p,
.who-should-attend-section h2, .who-should-attend-section h5,
.reasons-section h2, .reasons-section h3, .reasons-section h4, .reasons-section h5,
.registration-section h2, .registration-title,
.showcase-section h2, .showcase-title,
.site-footer h3, .site-footer h5 {
    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 12px rgba(26, 82, 118, 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;
    border-bottom: 2px solid var(--primary-color);
}

.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;
}

.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(151, 184, 56, 0.80), rgba(93, 167, 142, 0.80));
}
.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);
}

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

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(90deg, rgba(151, 184, 56, 0.80), rgba(93, 167, 142, 0.80)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
}

/* =======================================================================
   --- Who Should Attend Section (UPDATED FOR 6 REGIONS) --- 
   ======================================================================= */
.who-should-attend-section {
    background: linear-gradient(90deg, rgba(151, 184, 56, 0.80), rgba(93, 167, 142, 0.80)),
                url('images/bfsibanners.webp') no-repeat center center;
    background-size: cover;
    color: #fff;
    overflow: hidden;
}

.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 */
.ring-others   { width: 300px; height: 300px; background: conic-gradient(var(--chart-others) 0% 30%, rgba(255,255,255,0.02) 30% 100%); z-index: 1; }
.ring-sponsors { width: 260px; height: 260px; background: conic-gradient(var(--chart-sponsors) 0% 43%, rgba(255,255,255,0.04) 43% 100%); z-index: 2; }
.ring-managers { width: 220px; height: 220px; background: conic-gradient(var(--chart-managers) 0% 22%, rgba(255,255,255,0.06) 22% 100%); z-index: 3; }
.ring-vps      { width: 180px; height: 180px; background: conic-gradient(var(--chart-vps) 0% 5%, rgba(255,255,255,0.08) 5% 100%); z-index: 4; }

/* Geographical Chart Rings (Updated to 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; }

/* Marker Logic */
.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); }

/* Coordinates (Fixed Marker Pos-6) */
.markers-seniority .pos-1 { top: 20px; } .markers-seniority .pos-2 { top: 40px; }
.markers-seniority .pos-3 { top: 60px; } .markers-seniority .pos-4 { top: 80px; } 

.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; }

/* Legends Mapping */
.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; }
.legend-color { width: 12px; height: 12px; border-radius: 50%; margin-right: 10px; border: 1px solid rgba(255,255,255,0.4); flex-shrink: 0; }

.color-others, .color-geo-1   { background-color: var(--chart-geo-1) !important; }
.color-sponsors, .color-geo-2 { background-color: var(--chart-geo-2) !important; }
.color-managers, .color-geo-3 { background-color: var(--chart-geo-3) !important; }
.color-vps, .color-geo-4      { background-color: var(--chart-geo-4) !important; }
.color-csuite, .color-geo-5   { background-color: var(--chart-geo-5) !important; }
.color-geo-other, .color-geo-6 { background-color: var(--chart-geo-6) !important; }

/* Attendee List */
.attendee-list-box {
    background: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.15);
}
.attendee-list-box::-webkit-scrollbar { width: 6px; }
.attendee-list-box::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.attendee-list-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); }
.attendee-list li { margin-bottom: 8px; display: flex; align-items: center; font-size: 15px !important; }
.attendee-list li i { color: #fff; font-size: 12px; opacity: 0.7; }

/* Media Chart Scaling */
@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; }
}
@media (max-width: 420px) {
    .chart-container { transform: scale(0.85); transform-origin: center top; margin-bottom: -30px !important; }
}

/* --- Speakers (Restored Mouse Transition) --- */
.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(26, 82, 118, 0.15); }
.speaker-content { padding: 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; }
.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/ctnwest-showcase.webp'); background-size: cover; background-position: center; color: #fff; position: relative; }
.showcase-content { position: relative; z-index: 2; padding: 80px 0; }

/* --- Testimonials --- */
#testimonials { background-color: #f9f9f9; }
#testimonials .section-title-underlined { color: var(--primary-color) !important; }
.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; opacity: 0.8; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1) grayscale(100); background-size: 100%, 100%; }

/* --- Reasons Section --- */
.reasons-section {
    background: linear-gradient(90deg, rgba(151, 184, 56, 0.80), rgba(93, 167, 142, 0.80)),
                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 strong { color: var(--primary-color); font-weight: 700; margin-right: 5px; }

/* --- Registration --- */
.registration-section {
    background: linear-gradient(90deg, rgba(151, 184, 56, 0.80), rgba(93, 167, 142, 0.80)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
    padding-bottom: 80px;
}
.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; background-color: #f8f9fa; transition: all 0.3s; }
.custom-input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.2); background-color: #fff; }

/* --- Footer --- */
.site-footer { background-color: #1a1a1a; color: #ccc; border-top: 5px solid var(--primary-color); }
.site-footer h3, .site-footer h5 { color: #fff !important; }
.footer-divider { border-color: var(--primary-color); }
.contact-list i { color: var(--primary-color); margin-right: 10px; }
.social-link { color: #555; transition: all 0.3s ease; display: inline-block; }
.social-link:hover { color: var(--primary-color) !important; transform: translateY(-3px); }

/* --- Final Media Queries --- */
@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; }
    .registration-card { padding: 30px 20px; }
}