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

:root {
    --primary-color: #508abe;
    --secondary-color: #3a8699;
    --button-color: #508abe;
    --button-hover: #3a8699;
    --text-dark: #000000;
    --text-light: #ffffff;
    
    /* Chart Colors */
    --chart-csuite: #ffffff;        /* White */
    --chart-vps: #00ffff;           /* Cyan/Aqua */
    --chart-managers: #ffcc00;      /* Gold/Yellow */
    --chart-sponsors: #ff9900;      /* Orange */
    --chart-others: #ff007f;        /* Bright Pink */
    
    /* Geo Chart specific variables mapped to original colors */
    --chart-geo-east: #ff007f;      /* Pink */
    --chart-geo-west: #ff9900;      /* Orange */
    --chart-geo-europe: #ffcc00;    /* Yellow */
    --chart-geo-central: #00ffff;   /* Cyan */
    --chart-geo-other: #ffffff;     /* White */
}

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: 400px;
    font-size: 44px !important; 
    line-height: 1.2;
}

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

/* --- 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: 400px;
    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);
}

.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.5) !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(80, 138, 190, 0.80), rgba(58, 134, 153, 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;
}
.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: #f0efff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* --- Stats Section --- */
.stats-section {
    background: linear-gradient(90deg, rgba(80, 138, 190, 0.80), rgba(58, 134, 153, 0.80)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
}

/* =======================================================================
   --- Who Should Attend Section (Charts & Layout) --- 
   ======================================================================= */
.who-should-attend-section {
    background: linear-gradient(90deg, rgba(80, 138, 190, 0.80), rgba(58, 134, 153, 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;
}

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

/* --- Geographical Chart Rings (5 Rings) --- */
.ring-geo-other { /* Inner (3%) */
    width: 140px; height: 140px;
    background: conic-gradient(var(--chart-csuite) 0% 3%, rgba(255,255,255,0.1) 3% 100%);
    z-index: 6;
}
.ring-geo-central { /* 4th (10%) */
    width: 180px; height: 180px;
    background: conic-gradient(var(--chart-vps) 0% 10%, rgba(255,255,255,0.08) 10% 100%);
    z-index: 5;
}
.ring-geo-europe { /* 3rd (12%) */
    width: 220px; height: 220px;
    background: conic-gradient(var(--chart-managers) 0% 12%, rgba(255,255,255,0.06) 12% 100%);
    z-index: 4;
}
.ring-geo-west { /* 2nd (25%) */
    width: 260px; height: 260px;
    background: conic-gradient(var(--chart-sponsors) 0% 25%, rgba(255,255,255,0.04) 25% 100%);
    z-index: 3;
}
.ring-geo-east { /* Outer (50%) */
    width: 300px; height: 300px;
    background: conic-gradient(var(--chart-others) 0% 50%, rgba(255,255,255,0.02) 50% 100%);
    z-index: 2;
}

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

/* Y-Axis Coordinate Math */
.markers-seniority .pos-1 { top: 20px; } /* Outer */
.markers-seniority .pos-2 { top: 40px; }
.markers-seniority .pos-3 { top: 60px; }
.markers-seniority .pos-4 { top: 80px; } /* Inner */

.markers-geo .pos-1 { top: 20px; } /* Outer */
.markers-geo .pos-2 { top: 40px; }
.markers-geo .pos-3 { top: 60px; }
.markers-geo .pos-4 { top: 80px; }
.markers-geo .pos-5 { top: 100px; } /* Inner */

/* --- 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;
}

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

/* Legend Maps */
.color-csuite { background-color: var(--chart-csuite); }
.color-vps { background-color: var(--chart-vps); }
.color-managers { background-color: var(--chart-managers); }
.color-sponsors { background-color: var(--chart-sponsors); }
.color-others { background-color: var(--chart-others); }

.color-geo-east { background-color: var(--chart-others); }
.color-geo-west { background-color: var(--chart-sponsors); }
.color-geo-europe { background-color: var(--chart-managers); }
.color-geo-central { background-color: var(--chart-vps); }
.color-geo-other { background-color: var(--chart-csuite); }

/* --- Lists (Third Column) --- */
.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); border-radius: 10px; }
.attendee-list-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 10px; }
.attendee-list-box::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

.attendee-list { margin: 0; }
.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; }

/* =======================================================
   --- Chart Mobile Responsiveness (New Scaling Logic) ---
   ======================================================= */
@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; }
}

@media (max-width: 360px) {
    .chart-container {
        transform: scale(0.75);
        margin-bottom: -60px !important; 
    }
}


/* --- 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;
}

/* --- Invited Companies / Partners Section --- */
#sponsors {
    background-color: #fff; 
    color: #000;
}

#sponsors .section-title-underlined {
    color: #508abe !important;
    font-weight: 800; 
}
#sponsors .section-title-underlined::after {
    background-color: #508abe !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 / Schedules --- */
.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: #b53c44 !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/showcase-background.jpg');
    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 Section --- */
#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(80, 138, 190, 0.80), rgba(58, 134, 153, 0.80)),
                url('images/Banners.png') no-repeat center center;
    background-size: cover;
    color: #fff !important;
}
.reason-icon { color: #fff; opacity: 0.8; }

/* --- Audience Includes Section --- */
#audience {
    background-color: #ffffff;
    padding: 80px 0;
}

.audience-box {
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.audience-box:hover {
    transform: translateY(-5px); 
}

.audience-icon {
    font-size: 50px;
    color: #508abe;
    margin-bottom: 20px;
    display: block;
}

.audience-text {
    font-size: 16px !important;
    color: #000000; 
    font-weight: 700;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 220px; 
}

/* --- 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 Form Section --- */
.registration-section {
    background: linear-gradient(90deg, rgba(80, 138, 190, 0.80), rgba(58, 134, 153, 0.80)),
                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(108, 99, 255, 0.2);
    background-color: #fff;
}

.custom-input::placeholder {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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: #5a52d5 !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 Icons --- */
.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;
}

/* --- Footer --- */
.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; }

/* Global Fallback Responsive Rules */
@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;
    }
}