/* Global Variables */
:root {
    /* Colors - Injected via Twig in base.twig */
    --color-primary: #0a4d53;
    /* Fallback */
    --color-accent: #62B74E;
    /* Fallback */
    --color-bg-light: #ffffff;
    --color-bg-alt: #f8f9fa;
    /* Light gray for alternating sections */
    --color-bg-dark: #222222;
    --color-text-light: #212529;
    --color-text-dark: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Fonts */
    --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent scrollbar from full-width elements */
}

/* ... existing styles ... */

/* Section Title Divider */
.section-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    color: var(--porto-green) !important;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    width: 100%;
    /* Spans parent width */
    padding: 0;
}

.section-title-divider::before,
.section-title-divider::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid var(--porto-green);
    margin: 0 1rem;
    opacity: 0.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--color-primary), black 10%);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: color-mix(in srgb, var(--color-accent), black 10%);
    transform: translateY(-2px);
}

/* Theme Sections */
section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* Section Title Divider */
.section-title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    color: var(--porto-green) !important;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    /* Matches existing mb-2 */
    width: 100%;
}

.section-title-divider::before,
.section-title-divider::after {
    content: "";
    flex: 1;
    border-bottom: 2px solid var(--porto-green);
    margin: 0 1rem;
    max-width: 100px;
    /* Optional: limits line length */
    opacity: 0.5;
}

/* === Ref/Site Main Styles === */
body {
    font-family: var(--font-body);
    /* color: var(--text-dark);  Already set */
    /* background-color: var(--bg-light); Already set */
    /* padding-top: var(--navbar-height); Removed to allow Hero to be full screen */
}

/* Utilitários de Texto */
.text-porto-blue {
    color: var(--porto-blue) !important;
}

.text-porto-green {
    color: var(--porto-green) !important;
}

.bg-porto-blue {
    background-color: var(--porto-blue) !important;
}

.bg-porto-green {
    background-color: var(--porto-green) !important;
}

.bg-purple {
    background-color: var(--porto-purple) !important;
}

.btn-outline-purple {
    color: var(--porto-purple) !important;
    border: 2px solid var(--porto-purple) !important;
    background-color: transparent;
}

.btn-outline-purple:hover {
    color: white !important;
    background-color: var(--porto-purple) !important;
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.invisible {
    visibility: hidden !important;
}

/* Force white border for outline-light buttons */
.btn-outline-light {
    border: 2px solid white !important;
    color: white !important;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--porto-blue) !important;
}

/* Footer Link Hover Effect */
.hover-underline-green {
    position: relative;
    text-decoration: none !important;
    display: inline-block;
}

.hover-underline-green::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--porto-green);
    transition: width 0.3s ease;
}

.hover-underline-green:hover::after {
    width: 100%;
}

/* === NAVBAR === */
.navbar {
    height: var(--navbar-height);
    transition: all 0.3s ease;
}

.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    font-size: 0.85rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link.active {
    color: var(--porto-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--porto-green);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hover-porto-green:hover {
    color: var(--porto-green) !important;
}

/* Botão Área do Atleta */
.btn-outline-primary {
    color: var(--porto-blue);
    border-color: var(--porto-blue);
}

.btn-outline-primary:hover {
    background-color: var(--porto-blue);
    border-color: var(--porto-blue);
    color: #fff;
}

/* === FOOTER === */
footer a {
    transition: color 0.2s;
}

.hover-white:hover {
    color: white !important;
}

.btn-social {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.btn-social:hover {
    background-color: var(--porto-green);
    transform: translateY(-3px);
}

/* === BENTO CARDS & General UI === */
.bento-card {
    border-radius: var(--bento-radius);
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

.bento-card {
    border-radius: var(--bento-radius);
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

/* === MODULE: HERO === */
/* Base Full Screen */
.hero-section {
    height: 100vh;
    height: 100dvh;
    background-color: #001f22;
    /* porto-dark fallback */
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 77, 83, 0.95) 0%, rgba(10, 77, 83, 0.7) 40%, rgba(10, 77, 83, 0.1) 100%);
}

.op-50 {
    opacity: 0.5;
}

.op-75 {
    opacity: 0.75;
}

.text-stroke {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.btn-porto-green {
    background-color: var(--porto-green);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(98, 183, 78, 0.3);
}

.btn-porto-green:hover {
    background-color: #4da33b;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(98, 183, 78, 0.5);
    color: white;
}

.btn-blur {
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-blur:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MODULE: FEED === */
.feed-stream-container {
    max-height: 550px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.feed-stream-container::-webkit-scrollbar {
    width: 6px;
}

.feed-stream-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
}

.bento-card {
    border-radius: var(--bento-radius);
    transition: transform 0.2s ease;
    background-color: #fff;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-2px);
}

.border-gray-medium {
    border: 1px solid #dee2e6 !important;
}

.border-green-thick {
    border: 3px solid var(--porto-green) !important;
}

.border-primary-thick {
    border: 3px solid var(--porto-blue) !important;
}

.border-purple-thick {
    border: 3px solid var(--porto-purple) !important;
}

.highlight-card {
    min-height: 550px;
}

.poster-area {
    width: 45%;
    background-size: cover;
    background-position: center top;
    flex-shrink: 0;
}

.content-area {
    flex-grow: 1;
}

.icon-box {
    width: 55px;
    height: 55px;
}

.icon-box-sm {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

/* === MODULE: SOCIAL === */
#social-divider {
    background-color: var(--porto-blue);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.social-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mix-blend-mode: overlay;
    filter: grayscale(100%);
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(10, 77, 83, 0.8) 0%, rgba(10, 77, 83, 1) 100%);
}

.bento-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--bento-radius);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.bento-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.bento-glass:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.bg-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.bg-facebook {
    background: linear-gradient(to bottom right, #1877F2, #166fe5);
}

.bg-whatsapp {
    background: linear-gradient(to bottom right, #25D366, #128C7E);
}

.bg-youtube {
    background: linear-gradient(to bottom right, #FF0000, #cc0000);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* === MODULE: EVENTS === */
.nav-pills .nav-link {
    color: var(--porto-blue);
    background-color: white;
    border: 1px solid rgba(10, 77, 83, 0.1);
    transition: all 0.3s ease;
    margin-left: 5px;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background-color: var(--porto-blue);
    color: white;
    border-color: var(--porto-blue);
    box-shadow: 0 4px 10px rgba(10, 77, 83, 0.3);
}

.event-card {
    border-radius: var(--bento-radius);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.event-poster {
    width: 140px;
    height: 200px;
    background-size: cover;
    background-position: center top;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 240px;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 5px;
    height: 85px;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.btn-action:hover:not(.disabled) {
    background-color: white;
    border-color: var(--porto-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    color: var(--porto-blue);
}

.icon-box-sm {
    width: 40px;
    height: 40px;
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-light-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.border-bottom-dashed {
    border-bottom: 1px dashed #dee2e6;
}

/* === VISUAL EFFECTS === */
.btn-glass-semitransparent {
    background-color: rgba(10, 77, 83, 0.6);
    /* Porto Blue with opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-glass-semitransparent:hover {
    background-color: var(--porto-green);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* === MODULE: ABOUT === */
.about-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.service-box {
    background-color: #f8f9fa !important;
    transition: all 0.2s;
    min-height: 110px;
    border: 1px solid transparent;
}

.service-box:hover {
    background-color: #fff !important;
    border-color: var(--porto-blue);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.floating-badge {
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* === MODULE: CONTACT === */
.bg-porto-green {
    background-color: var(--porto-green) !important;
}

.btn-white {
    background-color: white;
    border: 2px solid white;
    /* Prepare for border transition */
    transition: all 0.2s;
    padding: 12px 30px;
    color: var(--porto-green);
    font-weight: 700;
}

.btn-white:hover {
    background-color: transparent;
    color: white !important;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05);
}

.border-visible {
    border: 1px solid #dee2e6 !important;
}

.border-top-blue {
    border-top: 5px solid var(--porto-blue) !important;
}

.form-control,
.form-select {
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    /* Added visible border */
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(10, 77, 83, 0.1);
    border-color: var(--porto-blue);
    background-color: white !important;
}

.btn-porto-blue {
    background-color: var(--porto-blue);
    color: white;
    transition: all 0.3s;
    border: none;
}

.btn-porto-blue:hover {
    background-color: #083d42;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 77, 83, 0.2) !important;
    color: white !important;
    /* Force white text */
}

.hover-scale:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(98, 183, 78, 0.3) !important;
}

/* Responsiveness overrides */
@media (max-width: 991px) {
    .highlight-card {
        flex-direction: column !important;
        height: auto !important;
    }

    .poster-area {
        width: 100%;
        height: 450px;
    }

    .feed-stream-container {
        max-height: none;
        overflow-y: visible;
    }

    .about-image {
        height: 200px;
    }

    .hero-bg {
        background-position: 70% bottom;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(10, 77, 83, 1) 0%, rgba(10, 77, 83, 0.8) 50%, rgba(10, 77, 83, 0.2) 100%);
    }

    .hero-content {
        text-align: center;
        margin-top: auto;
        padding-bottom: 80px;
    }

    .display-3 {
        font-size: 2.8rem;
    }

    .event-poster {
        width: 100%;
        height: 250px;
    }

    .action-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Feed Regulation Button Style */
.btn-icon-outline {
    background-color: transparent !important;
    border: 2px solid var(--porto-green) !important;
    color: var(--porto-green) !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.btn-icon-outline:hover {
    background-color: var(--porto-green) !important;
    color: var(--color-text-dark) !important;
}

.btn-icon-outline i {
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: block;
}

/* Fix Back To Top Icon Centering */
.back-to-top {
    display: flex !important;
    /* Changed to flex */
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    text-align: center;
    width: 45px;
    /* Fixed size for perfect circle */
    height: 45px;
    border-radius: 50%;
}

.back-to-top svg,
.back-to-top i {
    line-height: 1;
    /* Reset line-height */
    margin: auto !important;
    /* Force auto margins for centering */
    display: block;
    /* Remove inline behaviors */
    width: 24px;
    /* Explicit size for SVG */
    height: 24px;
}