/* ============================================
   UTILITIES
   ============================================ */
.text-justify {
    text-align: justify;
}

#about-congress-card .text-justify {
    line-height: 1.4;
}

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Bello Pro';
    src: url('../fonts/header/BelloProRegular.woff2') format('woff2'),
         url('../fonts/header/BelloProRegular.woff') format('woff');
}

@font-face {
    font-family: 'Androgyne';
    src: url('../fonts/header/Androgyne.woff2') format('woff2'),
         url('../fonts/header/Androgyne.woff') format('woff');
}

/*
   DESIGN SYSTEM
   --navy:  #0f2044  (hero, footer, card headers)
   --blue:  #1a3a6b  (brand, navbar brand)
   --sky:   #0ea5e9  (accents, hover, links, buttons)
   --gold:  #d4a017  (edition label, dividers, borders)
   --bg:    #f0f4f8  (page background)
   --text:  #1e293b  (body text)
   --muted: #64748b  (secondary text)
*/

/* ============================================
   BASE LAYOUT
   ============================================ */
html { height: 100%; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 60px;
    background-color: #f0f4f8;
    color: #1e293b;
    font-size: .95rem;
    line-height: 1.6;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-icd {
    background-color: #fff;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030) 1;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .07);
    min-height: 60px;
}

.navbar-icd .navbar-brand {
    color: #1a3a6b !important;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .03em;
}

.navbar-icd .nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .5rem .8rem !important;
    transition: color .18s;
}

.navbar-icd .nav-link:hover,
.navbar-icd .nav-link:focus {
    color: #0ea5e9 !important;
}

.navbar-icd .navbar-toggler {
    border-color: #0ea5e9;
}

.navbar-icd .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='%230ea5e9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO HEADER
   ============================================ */
.header-hero {
    background: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030) 1;
    padding: 3.5rem 0;
}

.header-banner {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030) 1;
    line-height: 0;
}

.header-banner img {
    max-height: 110px;
    object-fit: cover;
    object-position: center;
}

.about-video {
    width: 100%;
    border-radius: .5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
}

.header-video {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030) 1;
    line-height: 0;
    overflow: hidden;
}

.header-video__player {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-logo {
    max-width: 150px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
    margin-bottom: 1.25rem;
}

.hero-edition {
    color: #d4a017;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.hero-title {
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-topics {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.5rem;
}

.hero-topic {
    color: #93c5fd;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .02em;
}

.hero-topic-sep {
    color: #d4a017;
    font-size: 1rem;
    font-weight: 700;
}

.hero-info {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 2rem;
    padding: .55rem 1.5rem;
    color: #e2e8f0;
    font-size: .9rem;
    font-weight: 500;
}

.hero-info .fa {
    color: #d4a017;
    margin-right: .3rem;
}

.hero-sep {
    color: rgba(255, 255, 255, .3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.container-icd {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* Cards */
.container-icd .card {
    margin-bottom: 1.75rem;
    border: none;
    border-radius: .6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .07);
    overflow: hidden;
    transition: box-shadow .2s;
}

.container-icd .card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .1);
}

.container-icd .card-header {
    background: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030);
    padding: .75rem 1.5rem;
    border-bottom: none;
}

.container-icd .card-title {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.container-icd .card-body {
    background-color: #fff;
    padding: 1.75rem;
}

/* Info box inside card */
.container-icd .card-body .bg-light {
    background-color: #f0f6ff !important;
    border-color: #bfdbfe !important;
    border-left: 4px solid #0ea5e9 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 0 .375rem .375rem 0 !important;
}

/* ============================================
   UTILITIES & COMPONENTS
   ============================================ */

.text-icd { color: #0ea5e9; }

/* Buttons */
.btn-icd {
    border-color: #0ea5e9;
    color: #0ea5e9;
    font-weight: 500;
    border-radius: .375rem;
    transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}

.btn-icd:hover,
.btn-icd:focus {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, .35);
}

/* Badges */
#label-icd {
    background-color: #0ea5e9 !important;
}

/* Links */
a { color: #0ea5e9; }
a:hover { color: #0284c7; }

/* Lists */
.ul-icd {
    list-style: none;
    padding-left: .25rem;
}

.ul-icd li { margin-bottom: .4rem; }

.ul-icd li::before {
    content: "›  ";
    color: #0ea5e9;
    font-weight: 700;
}

.ol-icd li { margin-bottom: .4rem; }

.roman-list { list-style-type: upper-roman; }

/* Form */
.form-check-input[type="radio"],
.form-check-input[type="checkbox"] {
    border-radius: 0;
}

.form-check-input {
    border: 2px solid #64748b;
}

.form-check-input:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

/* Carousel */
#carousel-juan,
#carousel-uel,
#carousel-history {
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

#carousel-uel .carousel-inner {
    aspect-ratio: 3160 / 2160;
}

#carousel-uel .carousel-item,
#carousel-uel img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Event poster */
#poster-icd img {
    border-radius: .5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
    transition: transform .25s, box-shadow .25s;
    width: 100%;
}

#poster-icd img:hover {
    transform: scale(1.025);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

/* Map */
#map {
    height: 370px;
    width: 100%;
    background-color: #cbd5e1;
    border-radius: .5rem;
    margin-bottom: 1rem;
}

#map-home {
    height: 160px;
    width: 100%;
    background-color: #cbd5e1;
    border-radius: .5rem;
}

/* Video */
#iframe-londrina {
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

/* Developer link */
#developer-icd,
#developer-icd:hover {
    color: #94a3b8;
    text-decoration: none;
    border-bottom: 1px dotted #94a3b8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030);
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, #081830, #0a1f44 15%, #1a4a8a 40%, #c04010 65%, #e06010 80%, #f5b030) 1;
    padding: 3rem 0;
}

.footer h4 {
    color: #d4a017;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(212, 160, 23, .3);
}

.footer-label {
    color: #d4a017;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.img-org,
.img-support {
    max-height: 90px;
    width: auto;
}

.footer-divider {
    width: 1px;
    height: 80px;
    background-color: rgba(212, 160, 23, .4);
    margin: 0 1.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767.98px) {
    body { font-size: .9rem; }

    .hero-title { font-size: 1.5rem; }

    .hero-topic { font-size: .85rem; }

    .hero-info {
        font-size: .8rem;
        flex-direction: column;
        gap: .4rem;
        padding: .6rem 1.2rem;
    }

    .hero-sep { display: none; }

    .hero-logo {
        max-width: 110px;
        margin-bottom: 1rem;
    }

    .container-icd {
        padding-top: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .footer-divider { display: none; }

    .container-icd .card-body { padding: 1.25rem; }
}
