:root{
    --brand-blue: #4a9fe8;
    --brand-blue-dark: #2879c7;
    --ink: #24364b;
}

*{
    font-family: 'Poppins', sans-serif;
}

body{
    background: #f6faff;
    color: var(--ink);
}

.navbar{
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(38, 91, 137, 0.08);
    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand{
    font-weight: 700;
    color: var(--brand-blue-dark) !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img{
    width: auto;
    max-height: 54px;
    object-fit: contain;
}

.navbar .nav-link{
    color: #3d5269;
    font-weight: 500;
    padding-left: 12px;
    padding-right: 12px;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus{
    color: var(--brand-blue-dark);
}

.navbar .navbar-toggler{
    border-color: rgba(40, 121, 199, .2);
}

.navbar .navbar-toggler:focus{
    box-shadow: 0 0 0 .2rem rgba(74, 159, 232, .2);
}

.brand-copy{
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong{
    color: #173c60;
    font-size: .95rem;
    letter-spacing: -.02em;
}

.brand-copy small{
    color: #71869b;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.navbar .nav-link i{
    color: var(--brand-blue-dark);
    margin-right: 3px;
}

.gluco-member-link img{
    height: 35px;
    width: auto;
    object-fit: contain;
}

.gluco-banner{
    width: 100%;
    overflow: hidden;
    background: #eaf5ff;
}

.gluco-banner__image{
    display: block;
    width: 100%;
    height: auto;
}

.gluco-eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #2879c7;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gluco-eyebrow i{
    font-size: 1rem;
}

.gluco-quick-links{
    position: relative;
    z-index: 2;
    margin-top: 28px;
}

.gluco-quick-links .container{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e7f0f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(38, 91, 137, .1);
}

.gluco-quick-link{
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 23px;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease;
}

.gluco-quick-link + .gluco-quick-link{
    border-left: 1px solid #eaf1f7;
}

.gluco-quick-link:hover{
    background: #f7fbff;
    color: inherit;
}

.gluco-quick-link__icon{
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 15px;
    background: #eaf5ff;
    color: #378bd5;
    font-size: 1.2rem;
}

.gluco-quick-link strong,
.gluco-quick-link small{
    display: block;
}

.gluco-quick-link strong{
    color: #264968;
    font-size: .86rem;
}

.gluco-quick-link small{
    margin-top: 4px;
    color: #8293a5;
    font-size: .72rem;
}

.gluco-quick-link__arrow{
    margin-left: auto;
    color: #8eb6d9;
}

.gluco-about{
    padding-top: 56px !important;
}

.gluco-eyebrow--soft{
    margin-bottom: 12px;
    letter-spacing: .07em;
}

.gluco-about__title{
    max-width: 520px;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.gluco-about__image{
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(38, 91, 137, .16) !important;
}

.gluco-statistics{
    background: linear-gradient(180deg, #f0f8ff, #f8fcff);
}

.gluco-section-heading{
    max-width: 620px;
    margin: 0 auto 38px;
    text-align: center;
}

.gluco-section-heading .section-title{
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.gluco-section-heading .section-subtitle{
    margin-bottom: 0;
}

.gluco-stat-card{
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(38, 91, 137, .07) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.gluco-stat-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(38, 91, 137, .12) !important;
}

.gluco-stat-card__icon{
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 18px;
    font-size: 1.55rem;
}

.gluco-stat-card__icon--people{
    background: #e9f4ff;
    color: #438fd0;
}

.gluco-stat-card__icon--events{
    background: #e7f8f4;
    color: #35a48b;
}

.gluco-stat-card__icon--participants{
    background: #fff4e8;
    color: #df9b4b;
}

.gluco-stat-card h2{
    color: #244666;
}

.gluco-stat-card p{
    font-size: .88rem;
}

.hero h1{
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 14px rgba(8, 39, 68, .25);
}

.hero p{
    font-size: 1.1rem;
    margin-top: 20px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.hero .btn-success{
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.72);
}

.hero .btn-success:hover{
    background: rgba(255,255,255,.25);
}

.btn-main{
    background: var(--brand-blue);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 7px 18px rgba(40, 121, 199, .2);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-main:hover{
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(40, 121, 199, .25);
}

.section-title{
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--ink);
}

.section-subtitle{
    color: #718198;
    margin-bottom: 50px;
}

.event-card{
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(38, 91, 137, 0.09);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

.event-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(38, 91, 137, 0.15);
}

.event-card > img{
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #f6faff;
}

.event-content{
    padding: 25px;
}

.event-date{
    color: var(--brand-blue-dark);
    font-weight: 600;
    font-size: 14px;
}

#event .badge.bg-danger{
    background-color: var(--brand-blue) !important;
}

.stats{
    background: linear-gradient(135deg, #6bb5f2, #378bd5);
    color: white;
    border-radius: 30px;
    box-shadow: 0 16px 36px rgba(40, 121, 199, .2);
}

.stats h2{
    font-weight: 700;
    font-size: 3rem;
}

.register-section{
    background: white;
    border-radius: 25px;
    box-shadow: 0 14px 36px rgba(38, 91, 137, 0.1);
}

.form-control{
    border-radius: 12px;
    padding: 12px;
    border-color: #d7e5f2;
}

.form-control:focus{
    border-color: #83bff0;
    box-shadow: 0 0 0 .2rem rgba(74, 159, 232, .16);
}

footer{
    background: #183b5b;
    color: rgba(255,255,255,0.78);
}

footer a{
    color: #fff;
    transition: color .2s ease;
}

footer a:hover{
    color: #a9d8ff;
}

@media(max-width:768px){
    .register-section{
        padding: 1.75rem !important;
    }

    .event-card > img{
        height: 260px;
    }

    .gluco-quick-links .container{
        grid-template-columns: 1fr;
    }

    .gluco-quick-link{
        padding: 16px 19px;
    }

    .gluco-quick-link + .gluco-quick-link{
        border-top: 1px solid #eaf1f7;
        border-left: 0;
    }

    .gluco-about{
        padding-top: 42px !important;
    }
}

@media(max-width:576px){
    .brand-copy strong{
        font-size: .82rem;
    }

    .brand-copy small{
        font-size: .56rem;
    }

    .navbar-brand{
        gap: 8px;
    }

    .navbar-brand img{
        max-height: 44px;
    }

    .gluco-about__image{
        max-height: 320px;
    }
}

#loadingOverlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.75);
    z-index:999999;
    display:none;

    justify-content:center;
    align-items:center;
}

.loading-box{
    text-align:center;
}

.spinner{
    width:60px;
    height:60px;
    border:6px solid #ddd;
    border-top:6px solid var(--brand-blue-dark);
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:auto;
}

.loading-text{
    margin-top:15px;
    font-size:18px;
    font-weight:bold;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.gallery{
    columns:4;
    column-gap:18px;
}

.gallery-item{
    display:block;
    position:relative;
    margin-bottom:18px;
    break-inside:avoid;
    overflow:hidden;
    border-radius:15px;
}

.gallery img{
    width:100%;
    display:block;
    border-radius:15px;
    transition:.35s ease;
}

.gallery-item:hover img{
    transform:scale(1.05);
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(28, 102, 164, .38);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:.3s;
}

.overlay i{
    color:white;
    font-size:42px;
}

.gallery-item:hover .overlay{

    opacity:1;

}

@media(max-width:1200px){
    .gallery{
        columns:3;
    }
}

@media(max-width:768px){
    .gallery{
        columns:2;
    }
}

@media(max-width:576px){
    .gallery{
        columns:1;
    }
}

.wa-float{
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;

    display:flex;
    align-items:center;
    text-decoration:none;

    animation: floatUp .5s ease;
}

.wa-text{

    background:#fff;
    padding:12px 16px;

    border-radius:15px;

    margin-right:10px;

    box-shadow:0 5px 25px rgba(0,0,0,.15);

    transition:.3s;
}

.wa-float:hover .wa-text{
    transform:translateX(-5px);
}

.wa-text .title{

    font-weight:700;
    color:#333;
    font-size:15px;
}

.wa-text .subtitle{

    color:#666;
    font-size:13px;
}

.wa-icon{

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25D366;

    display:flex;
    justify-content:center;
    align-items:center;

    color:white;
    font-size:34px;

    box-shadow:0 10px 25px rgba(37,211,102,.4);

    animation:pulse 2s infinite;
}

.wa-icon:hover{

    transform:scale(1.08);
}

@keyframes pulse{

    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.6);
    }

    70%{
        box-shadow:0 0 0 20px rgba(37,211,102,0);
    }

    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }
}

@keyframes floatUp{

    from{

        opacity:0;
        transform:translateY(30px);
    }

    to{

        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:768px){

    .wa-text{

        display:none;
    }

    .wa-icon{

        width:58px;
        height:58px;
        font-size:30px;
    }
}

.session-card{
    display:block;
    cursor:pointer;
    margin-bottom:15px;
}

.session-card input[type=radio]{
    display:none;
}

.session-content{
    border:2px solid #dee2e6;
    border-radius:12px;
    padding:18px;
    transition:.2s;
    background:#fff;
}

.session-card:hover .session-content{
    border-color:#0d6efd;
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.session-card input[type=radio]:checked + .session-content{
    border-color:#0d6efd;
    background:#eef6ff;
    box-shadow:0 0 0 4px rgba(13,110,253,.15);
}

.session-card.disabled{
    cursor:not-allowed;
}

.session-card.disabled .session-content{
    background:#f5f5f5;
    color:#999;
    border-color:#ddd;
    opacity:.8;
}

.agreement-box{
    display:block;
    cursor:pointer;
}

.agreement-box input{
    opacity:0;
    position:absolute;
}

.agreement-content{
    display:flex;
    align-items:flex-start;
    gap:15px;
    padding:16px;
    border:2px solid #ddd;
    border-radius:12px;
    transition:.2s;
}

.check-icon{
    width:28px;
    height:28px;
    border:2px solid #bbb;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    background:white;
    flex-shrink:0;
}

.agreement-box input:checked + .agreement-content{
    border-color:#198754;
    background:#edf9f1;
}

.agreement-box input:checked + .agreement-content .check-icon{
    background:#198754;
    border-color:#198754;
}

.agreement-error{
    display:none;
    color:#dc3545;
    margin-top:8px;
    font-size:.9rem;
}

.agreement-box.is-invalid .agreement-content{
    border:2px solid #dc3545;
    background:#fff5f5;
}

.agreement-box.is-invalid .agreement-error{
    display:block;
}

.agreement-box.is-invalid{
    animation:shake .35s;
}

@keyframes shake{
    0%{transform:translateX(0);}
    25%{transform:translateX(-6px);}
    50%{transform:translateX(6px);}
    75%{transform:translateX(-6px);}
    100%{transform:translateX(0);}
}