/* =====================================================
   SITE — Design Overrides (home + todas as páginas)
   Paleta: #115acc (blue), #00287B (navy),
           #1d0b0b (dark), #f3f3f3 (light), #1f1f2c (heading)
   ===================================================== */

:root {
    --blue: #115acc;
    --navy: #00287B;
    --dark: #1d0b0b;
    --light: #f3f3f3;
    --heading: #1f1f2c;
    --text: #636363;
    --border: #ebebeb;
}

/* =====================================================
   SECTION TITLE — redesign editorial
   ===================================================== */

.section-heading {
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    display: inline-block;
    color: var(--navy) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3em !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    padding-bottom: 16px;
    margin-bottom: 0 !important;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    border-radius: 2px;
}

/* =====================================================
   PAGE HEADER — heading-title redesign
   ===================================================== */

.heading-title {
    position: relative;
    overflow: hidden;
}

.heading-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 40, 123, 0.65) 100%
    );
    pointer-events: none;
}

.heading-title .container {
    position: relative;
    z-index: 2;
}

.heading-title h1 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5) !important;
    line-height: 1.1 !important;
}

@media (max-width: 767px) {
    .heading-title h1 {
        font-size: 32px !important;
    }
}

/* =====================================================
   FIND-OUT-MORE BUTTON
   ===================================================== */

.find-out-more-btn {
    margin-top: 48px;
    margin-bottom: 0;
}

.find-out-more-btn .crose-btn {
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 2px;
    transition: transform 200ms ease, background-color 300ms ease, color 300ms ease;
    min-width: 160px;
    height: 44px;
    line-height: 50px;
}

.find-out-more-btn .crose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 90, 204, 0.25);
}

/* =====================================================
   HERO BANNER — altura e overlay
   ===================================================== */

.hero-area .single-hero-slide {
    height: 600px;
    position: relative;
}

.hero-area .single-hero-slide.bg-overlay::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.45) 70%,
        rgba(0, 40, 123, 0.55) 100%
    ) !important;
}

@media (max-width: 700px) {
    .hero-area .single-hero-slide {
        height: 340px;
        margin-top: 180px;
    }
}

/* =====================================================
   NEWS CARDS — usado na home e na página News
   ===================================================== */

.blog-area {
    background: #ffffff;
}

.news-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: box-shadow 300ms ease, transform 300ms ease, border-top-color 300ms ease;
    border-top: 3px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 8px 32px rgba(17, 90, 204, 0.18);
    transform: translateY(-4px);
    border-top-color: var(--blue);
}

.news-card .news-img-wrap {
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
}

.news-card .news-img {
    height: 215px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 400ms ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-card .post-content {
    flex: 1;
    padding: 20px 18px 18px;
    margin-top: 0 !important;
}

.news-card .post-content .post-title h4 {
    font-size: 15px !important;
    line-height: 1.4;
    color: var(--heading) !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    transition: color 200ms ease;
}

.news-card .post-content .post-title:hover h4 {
    color: var(--blue) !important;
}

.news-card .post-content .post-meta {
    margin-bottom: 0 !important;
}

.news-card .post-content .post-meta a {
    font-size: 12px;
    color: #959595;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card .post-content .post-meta a i {
    color: var(--blue);
    font-size: 13px;
}

/* =====================================================
   VIDEOS SECTION — home e página Videos
   ===================================================== */

.videos-area {
    background-color: var(--light) !important;
}

.videos-area .iframe-video {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 300ms ease, transform 300ms ease;
    margin-bottom: 30px;
}

.videos-area .iframe-video:hover {
    box-shadow: 0 8px 30px rgba(17, 90, 204, 0.2);
    transform: translateY(-3px);
}

.videos-area .video-title {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    margin-top: -16px;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 8px;
}

/* =====================================================
   GALLERY — home e página Gallery
   ===================================================== */

.gallery-area {
    background: #ffffff;
}

.gallery-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-img-wrap .top-img {
    transition: transform 450ms ease;
    border-radius: 0 !important;
}

.gallery-img-wrap::after {
    content: '\f00e';
    font-family: 'FontAwesome';
    position: absolute;
    inset: 0;
    background: rgba(17, 90, 204, 0.0);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: background 350ms ease, opacity 350ms ease;
}

.gallery-img-wrap:hover::after {
    background: rgba(17, 90, 204, 0.65);
    opacity: 1;
}

.gallery-img-wrap:hover .top-img {
    transform: scale(1.06);
}

/* =====================================================
   EVENTS SECTION — home (dark navy)
   ===================================================== */

.events-dark-section {
    background-color: var(--navy) !important;
    position: relative;
}

.events-dark-section .section-title {
    color: #ffffff !important;
}

.events-dark-section .section-title::before {
    background: linear-gradient(90deg, #7fb3ff, #ffffff);
}

.events-dark-section .upcoming-events-heading {
    background-color: transparent !important;
    background-image: none !important;
}

.events-dark-section .event-card {
    background: rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--blue);
    border-radius: 4px;
    padding: 18px 20px !important;
    margin-bottom: 16px;
    transition: background 250ms ease, border-left-color 250ms ease;
}

.events-dark-section .event-card:hover {
    background: rgba(255, 255, 255, 0.13);
    border-left-color: #7fb3ff;
}

.events-dark-section .event-title h4 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.03em;
}

.events-dark-section .events-meta a {
    color: #9ec5fe !important;
    font-size: 12px;
}

.events-dark-section .events-meta a i {
    color: #7fb3ff !important;
}

.events-dark-section .events-meta a:hover {
    color: #ffffff !important;
}

.events-dark-section .find-out-more-btn .crose-btn.btn-2 {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.events-dark-section .find-out-more-btn .crose-btn.btn-2:hover {
    background-color: var(--blue) !important;
    border-color: var(--blue);
    color: #ffffff !important;
}

.events-dark-section .event-banner-thumb {
    width: 80px;
    flex-shrink: 0;
    padding: 0 12px 0 0;
}

.events-dark-section .event-banner-thumb img {
    border-radius: 4px;
    width: 80px;
    height: 60px;
    object-fit: cover;
}

/* =====================================================
   CALENDAR PAGE — lista de eventos com fundo navy
   ===================================================== */

.calendar-events-wrap {
    background: var(--navy);
    border-radius: 8px;
    padding: 40px 32px 32px;
    margin-top: 0;
}

.calendar-events-wrap .section-heading {
    margin-bottom: 32px;
}

.calendar-events-wrap .section-title {
    color: #ffffff !important;
}

.calendar-events-wrap .section-title::before {
    background: linear-gradient(90deg, #7fb3ff, #ffffff);
}

.calendar-event-item {
    background: rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--blue);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 250ms ease, border-left-color 250ms ease;
    text-decoration: none;
}

.calendar-event-item:hover {
    background: rgba(255, 255, 255, 0.13);
    border-left-color: #7fb3ff;
}

.calendar-event-item .event-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.calendar-event-item .event-info {
    flex: 1;
    min-width: 0;
}

.calendar-event-item .event-info h4 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0.03em;
}

.calendar-event-item .events-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-event-item .events-meta a {
    color: #9ec5fe !important;
    font-size: 12px !important;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.calendar-event-item .events-meta a i {
    color: #7fb3ff !important;
}

.calendar-event-item .events-meta a:hover {
    color: #ffffff !important;
}

.calendar-event-item .download-link {
    color: #7fb3ff !important;
    font-size: 12px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.calendar-event-item .download-link:hover {
    color: #ffffff !important;
}

/* =====================================================
   MEMBERS PAGE
   ===================================================== */

.member-group-title {
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding-bottom: 14px;
    margin-bottom: 24px;
    margin-top: 40px;
    position: relative;
    display: inline-block;
}

.member-group-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--blue));
    border-radius: 2px;
}

.member-group-title:first-child {
    margin-top: 0;
}

.member-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 12px;
    border-left: 4px solid var(--blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 250ms ease, border-left-color 250ms ease, transform 250ms ease;
}

.member-card:hover {
    box-shadow: 0 6px 22px rgba(17, 90, 204, 0.14);
    border-left-color: var(--navy);
    transform: translateX(4px);
}

.member-card .member-country {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    font-family: 'Raleway', sans-serif;
}

.member-card .member-federation {
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.4;
}

.member-card .member-role {
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 600;
}

/* =====================================================
   NEWSLETTER PAGE
   ===================================================== */

.newsletter {
    border-left: 4px solid var(--blue) !important;
    border-radius: 4px !important;
    transition: background 250ms ease, border-left-color 250ms ease, transform 250ms ease !important;
    margin-bottom: 10px !important;
    background: #ffffff !important;
}

.newsletter:hover {
    background: var(--light) !important;
    border-left-color: var(--navy) !important;
    transform: translateX(4px);
}

.newsletter > div:first-child {
    font-weight: 700;
    color: var(--heading);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.newsletter a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    transition: background 200ms ease, transform 200ms ease !important;
}

.newsletter a:hover {
    background: var(--navy) !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* =====================================================
   DETAIL PAGES — NewsDetail, EventDetail
   ===================================================== */

.detail-content {
    max-width: 860px;
    margin: 0 auto;
}

.detail-content .detail-hero-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 32px;
    display: block;
}

.detail-content .detail-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--heading) !important;
    margin-bottom: 24px !important;
    line-height: 1.3 !important;
    font-family: 'Raleway', sans-serif !important;
}

.detail-content .detail-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 10px 22px;
    background: var(--blue);
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 250ms ease, transform 200ms ease;
    text-transform: uppercase;
}

.detail-content .detail-download:hover {
    background: var(--navy) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.detail-content .detail-download i {
    color: #ffffff !important;
    font-size: 14px;
}

/* =====================================================
   PAGINATION — melhoria visual consistente
   ===================================================== */

.pagination-area .pagination .page-item .page-link {
    border-radius: 2px !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.pagination-area .pagination .page-item .page-link:hover,
.pagination-area .pagination .page-item .page-link:focus {
    background-color: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #ffffff !important;
}

.pagination-area .pagination .page-item.active .page-link {
    background-color: var(--navy) !important;
    border-color: var(--navy) !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 0.65rem !important;
        letter-spacing: 0.2em !important;
    }

    .news-card .news-img {
        height: 180px;
    }

    .hero-area .single-hero-slide {
        height: 260px;
    }

    .find-out-more-btn {
        margin-top: 32px;
    }

    .calendar-events-wrap {
        padding: 24px 16px 20px;
    }

    .calendar-event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .calendar-event-item .event-thumb {
        width: 100%;
        height: 140px;
    }

    .detail-content .detail-title {
        font-size: 1.3rem !important;
    }
}
