:root {
    --navy-blue: #050a18;
    /* Navy Blue Profundo */
    --navy-blue-glass: rgba(5, 10, 24, 0.95);
    --neon-green: #2ecc71;
    --elite-green: #1eae5f;
    /* More natural/dark Elite Green */
    --neon-green-glow: rgba(46, 204, 113, 0.2);
    --white: #ffffff;
    --silver: #a0a0a0;
    --font-main: 'Montserrat', sans-serif;
    --neon-glow: 0 0 10px rgba(46, 204, 113, 0.3);
    /* Subtler Glow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.cb-page {
    background-color: var(--white) !important;
    color: var(--navy-blue) !important;
}

body {
    font-family: var(--font-main);
    background-color: var(--navy-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.accent {
    color: var(--neon-green);
    text-shadow: var(--neon-glow);
}

.accent-navy {
    color: var(--navy-blue);
    font-weight: 900;
}

.text-center {
    text-align: center !important;
}

.grey-bg-light {
    background-color: #f9f9f9;
}

.container-full {
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-2-reversed {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.grid-2-inverted {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    /* Gallery at ~58% width for maximum impact */
    gap: 120px;
    align-items: center;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: left;
    /* Default alignment for section titles */
}

h1,
h2,
h3 {
    text-align: inherit;
    /* Allow .text-center to override */
}

/* Top Navigation - Solid Deep Navy & Fixed 80px Height */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    background: var(--navy-blue);
    /* Solid Deep Navy #050a18 */
    z-index: 2000;
    /* Increased to stay above everything */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    /* Subtle white divider */
    box-shadow: none;
}

.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
}

.navbar .container {
    width: 100%;
    /* Important for justify-content */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    /* Pushes logo left and menu right */
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--white) !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased gap to accommodate tiny logo */
}

.nav-logo-tiny {
    max-height: 40px !important;
    /* Force constraint within navbar */
    width: auto !important;
    display: block;
    cursor: pointer;
    object-fit: contain;
}

.logo span {
    color: var(--neon-green);
    text-shadow: var(--neon-glow);
    /* Bright Neon Brilho */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    /* White links */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    /* Keep white and use border for active */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--neon-green);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    box-shadow: 0 0 10px var(--neon-green);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-color: var(--navy-blue);
    /* Fixed background color */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 Split */
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Absolute horizontal centering */
    text-align: center;
    /* Center individual lines */
    justify-content: center;
}

.hero-logo-small {
    width: 140px;
    height: auto;
    margin-top: 35px;
    /* User put it at the bottom, so we add top margin */
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 5px;
    /* Tighten space between the two title lines */
    text-transform: uppercase;
}

.hero-title .accent {
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
    margin-left: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--silver);
    font-weight: 500;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.5;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Align image to the right */
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    /* Rounded corners restored */
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.2);
    width: 100%;
    /* Fills the 50% column */
    max-width: 600px;
    /* Prevent excessive scaling */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 45px;
    /* Slightly adjusted padding */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    cursor: pointer;
    font-size: 1rem;
    /* Slightly bigger button text */
    border: none;
}

.btn-primary {
    background-color: var(--neon-green);
    color: var(--navy-blue);
    /* High contrast on Deep Navy */
    box-shadow: var(--neon-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
    background-color: var(--white);
    color: var(--navy-blue);
}

.btn-white {
    background-color: var(--white);
    color: var(--navy-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
    background-color: var(--neon-green);
    color: var(--navy-blue);
}

/* Image Wrappers */
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.image-wrapper img,
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* História Section */
.large-logo {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(46, 204, 113, 0.1);
}

.historia-text p {
    font-size: 1.1rem;
    color: var(--silver);
    margin-bottom: 30px;
    padding-right: 20px;
    /* Space from the image on the right */
}

/* Castelo Branco Section */
.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-2x2 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.grid-2x2 img:hover {
    transform: scale(1.05);
    border-color: var(--neon-green);
}

.cb-text p {
    font-size: 1.1rem;
    color: var(--silver);
    margin-bottom: 30px;
    padding-left: 20px;
    /* Space from the image on the left in the reversed grid */
}

/* Impacto Banner */
.impacto-banner {
    background-color: var(--navy-blue);
    /* Solid Deep Navy #050a18 */
    padding: 150px 0;
    text-align: center;
}

.impacto-title {
    font-size: 3rem;
    font-weight: 900;
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.1;
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.impact-item.full-width-item {
    grid-column: span 2;
    max-width: 600px;
    margin: 0 auto;
}

.impact-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.impact-header i {
    font-size: 2rem;
    color: var(--neon-green);
    min-width: 40px;
}

.impact-header h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.impact-description {
    font-size: 0.9rem;
    color: var(--silver);
    opacity: 0.8;
    line-height: 1.5;
}

.impact-item:hover {
    background: rgba(46, 204, 113, 0.05);
    border-color: var(--neon-green);
    transform: translateY(-5px);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text,
.hero-image,
.section-title,
.historia-logo,
.grid-2x2,
.impact-item {
    animation: fadeInUp 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .grid-2,
    .grid-2-reversed,
    .hero-container {
        gap: 40px;
    }
}

@media (max-width: 992px) {

    .grid-2,
    .grid-2-reversed,
    .grid-2-inverted,
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .grid-2-reversed {
        display: flex;
        flex-direction: column-reverse;
    }

    .cb-gallery {
        width: 100%;
    }

    .impacto-title {
        font-size: 2rem;
    }

    .polaroid-grid,
    .polaroid-grid-3,
    .polaroid-grid-5 {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 100%;
        padding: 0 15px;
    }

    .polaroid-item {
        transform: rotate(0deg) !important;
    }

    .historia-logo img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .navbar .nav-links {
        display: none;
    }

    /* Simplified for now */
    .grid-2x2 {
        grid-template-columns: 1fr;
    }

    .grid-2x2 img {
        height: 200px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        /* Smaller on mobile to fit one line */
        white-space: normal;
        /* Allow wrapping on very small screens for better UX */
    }
}

/* Social Media Band */
.social-band {
    background-color: var(--neon-green);
    padding: 100px 0;
    text-align: center;
}

.social-title {
    color: var(--navy-blue);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 2px;
}


.flex-center {
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--navy-blue);
    font-weight: 800;
}

.social-item i {
    font-size: 1.8rem;
}

.social-item a {
    text-decoration: none;
    color: var(--navy-blue);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.social-item a:hover {
    opacity: 0.7;
}

/* Footer Main */
.footer-main {
    background-color: #f4f4f4;
    /* Silver/White */
    color: var(--navy-blue);
    padding: 100px 0;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
}

/* Map Placeholder */
.map-placeholder {
    background-color: #e0e0e0;
    height: 400px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 2px dashed rgba(10, 10, 26, 0.2);
    overflow: hidden;
}

.map-overlay {
    text-align: center;
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.map-overlay i {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.map-overlay span {
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.map-placeholder p {
    font-weight: 700;
    opacity: 0.5;
    text-align: center;
    padding: 0 40px;
}

/* Footer Menu */
.footer-menu h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.footer-menu h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--navy-blue);
}

.footer-menu ul {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 15px;
}

.footer-menu a {
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    transform: translateX(10px);
    opacity: 0.6;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .grid-footer {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-menu h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .flex-center {
        flex-direction: column;
        gap: 30px;
    }

}

/* Castelo Branco Introduction Section */
.section-intro .grid-2 {
    grid-template-columns: 1.5fr 1fr;
    /* 60% text / 40% logo split */
    align-items: center;
    /* Center image vertically with the new wider text block */
    gap: 120px;
    /* Generous gap for a modern, clean look */
}

.intro-text-box h2 {
    margin-top: 0;
    /* Ensure no top margin for perfect alignment */
}

.intro-description {
    line-height: 1.8;
    margin-top: 25px;
    font-size: 1.05rem;
    text-align: justify;
    /* redundant but explicit for important sections */
}

.cb-image-frame img,
.embroidery-gallery .grid-2x2 img {
    width: 100%;
    max-width: 100%;
    /* Ensure proportional scaling */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

.section-embroidery .section-title {
    margin-bottom: 60px;
}

.embroidery-symbols {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}

.embroidery-symbols li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.8;
    /* Slightly increased for better readability alongside large images */
    text-align: justify;
}

.embroidery-symbols li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--navy-blue);
    font-size: 1.5rem;
    line-height: 1;
}

.accent-elite {
    color: var(--navy-blue);
    font-weight: 700;
}

/* Polaroid Photo Frames */
.polaroid-grid,
.polaroid-grid-3,
.polaroid-grid-5 {
    display: grid;
    gap: 40px;
    margin-top: 60px;
    padding-bottom: 40px;
    width: 100%;
}

.polaroid-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    /* Centered compact 3 row */
    margin: 0 auto;
}

.polaroid-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
}

.polaroid-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}

.polaroid-item {
    background-color: var(--white);
    padding: 12px 12px 48px;
    /* Refined padding for better proportions */
    width: 100%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    /* Slightly deeper shadow for more pop */
    border: 1px solid #ddd;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    /* Changed to flex to help with internal layout */
    flex-direction: column;
    text-decoration: none;
    transform: rotate(-2deg);
    /* Default rotation */
}

/* Staggered rotations for different rows */
.polaroid-grid-3 .polaroid-item:nth-child(1) {
    transform: rotate(-1.5deg);
}

.polaroid-grid-3 .polaroid-item:nth-child(2) {
    transform: rotate(2deg);
}

.polaroid-grid-3 .polaroid-item:nth-child(3) {
    transform: rotate(-1deg);
}

.polaroid-grid .polaroid-item:nth-child(1) {
    transform: rotate(1deg);
}

.polaroid-grid .polaroid-item:nth-child(2) {
    transform: rotate(-2.5deg);
}

.polaroid-grid .polaroid-item:nth-child(3) {
    transform: rotate(1.5deg);
}

.polaroid-grid .polaroid-item:nth-child(4) {
    transform: rotate(-2deg);
}

.polaroid-grid-5 .polaroid-item:nth-child(1) {
    transform: rotate(-2deg);
}

.polaroid-grid-5 .polaroid-item:nth-child(2) {
    transform: rotate(1.5deg);
}

.polaroid-grid-5 .polaroid-item:nth-child(3) {
    transform: rotate(-1deg);
}

.polaroid-grid-5 .polaroid-item:nth-child(4) {
    transform: rotate(2.5deg);
}

.polaroid-grid-5 .polaroid-item:nth-child(5) {
    transform: rotate(-2deg);
}

.polaroid-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    /* Snap straight and enlarge */
    z-index: 100;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.polaroid-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    /* Force square for consistency */
    display: block;
    object-fit: cover;
    border-radius: 4px;
    /* Subtle rounding for the photo itself */
}

/* Adaptable Polaroid for non-square images */
.polaroid-item.polaroid-adaptable {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.polaroid-adaptable img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    /* Override fixed 1/1 ratio */
    object-fit: initial;
}


.polaroid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    /* Matches the item's refined padding-bottom */
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertical center */
    align-items: center;
    text-align: center;
}

.polaroid-caption h3,
.polaroid-caption h6 {
    font-size: 0.9rem;
    /* Optimized for better readability */
    font-weight: 800;
    margin: 0;
    color: var(--navy-blue);
    line-height: 1.1;
    word-wrap: break-word;
    max-width: 100%;
}

.polaroid-item.polaroid-wide h6,
.polaroid-item.polaroid-wide h3 {
    font-size: 1.4rem;
    margin-top: 0;
    /* No need for photo margin anymore with flow layout */
    margin-bottom: 15px;
    /* Separation from paragraph */
}

.polaroid-caption p {
    font-size: 0.85rem;
    margin-top: 15px;
    color: #444;
    line-height: 1.6;
    /* More elegant line height for longer text */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .polaroid-item {
        width: 100%;
        max-width: 320px;
    }

    .poi-grid {
        flex-direction: column;
        padding: 0 20px;
    }

    .poi-column {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .poi-column:last-child {
        border-bottom: none;
    }
}

/* Sobre Page Styles - Redesign */
.sobre-page-content {
    padding-top: 80px;
    /* Aligned with navbar height */
    min-height: 100vh;
}

.history-section {
    padding: 120px 0;
}

.section-dark-navy {
    background-color: var(--navy-blue);
}

.container-history {
    max-width: 1100px;
    padding: 0 60px;
}

.focused-history-box {
    margin: 0 auto;
}

.history-header-box {
    border-left: 12px solid var(--elite-green);
    padding-left: 40px;
    margin-bottom: 60px;
    /* Space between header and text */
}

.history-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.history-subtitle {
    font-size: 1rem;
    color: var(--silver);
    font-weight: 800;
    margin-bottom: 40px;
    opacity: 0.9;
}

.history-text-content {
    margin-top: 60px;
    padding: 0 40px;
    /* Extra side room for reading comfort */
}

.history-text-content p {
    font-size: 1.15rem;
    color: var(--white);
    /* High contrast for dark background */
    line-height: 1.85;
    /* Increased for better legibility */
    text-align: justify;
    margin-bottom: 30px;
}

.history-text-content p:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    font-weight: 700;
    color: var(--navy-blue);
}

/* Clubs Section Styles */
.clubs-section {
    padding: 100px 0;
}

.clubs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    margin-top: 60px;
}

.club-symbol-card {
    background: var(--white);
    width: 260px;
    height: 260px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--elite-green);
    /* Using the deeper green */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    padding: 20px;
}

.club-symbol-card:hover {
    transform: scale(1.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.symbol-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.symbol-wrapper img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

/* Crop for SBCB from doislogs.png */
.sbcb-crop {
    position: relative;
}

.sbcb-crop img {
    max-width: none;
    height: 180px;
    object-fit: cover;
    object-position: -360px center;
    /* Adjust to isolate the right logo */
    /* Looking at the original image, SBCB is on the right */
    width: 250px;
    /* Force a width and use position to center the logo */
}

.video-section {
    padding: 60px 0;
}

.video-container {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    /* Ensure consistent aspect ratio */
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    border: none;
    display: block;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the frame without borders */
    display: block;
    border-radius: 17px;
}

.video-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* SBCB Page Specific Styles */
.sbcb-hero {
    background-color: var(--navy-blue);
    padding: 151px 0 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.sbcb-logo-large {
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.sbcb-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    /* Adjusted for single line on desktop */
    font-weight: 900;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: 1px;
    /* Slightly reduced to help fit one line */
    white-space: nowrap;
    /* Desktop default to prevent wrapping */
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .sbcb-hero h1 {
        white-space: normal;
        /* Allow wrap on mobile */
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
}

.sbcb-hero .slogan {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    /* Responsive slogan size */
    color: var(--neon-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    margin: 0 auto;
}

.section-sbcb-history {
    background-color: #f8f9fa;
    padding: 100px 0 20px 0;
    /* Reduced bottom padding for the split */
}

.section-sbcb-history .container {
    display: flex;
    flex-direction: row;
    /* Desktop side-by-side */
    align-items: flex-start;
    /* Perfect top alignment */
    gap: 5%;
}

.sbcb-image-side {
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    justify-content: center;
}

.sbcb-text-side {
    flex: 0 0 60%;
    max-width: 60%;
}

@media (max-width: 992px) {
    .section-sbcb-history .container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .sbcb-image-side,
    .sbcb-text-side {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.sbcb-text-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.sbcb-text-box p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-align: justify;
    margin-bottom: 20px;
}

.sbcb-text-box p:last-child {
    margin-bottom: 0;
}

/* Detailed History Section */
.section-sbcb-detailed-history {
    background-color: #f8f9fa;
    padding-bottom: 120px;
}

.detailed-history-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 15% 0 15%;
    /* 15% lateral padding for premium reading */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separator */
}

.detailed-history-content p {
    line-height: 1.8;
    text-align: justify;
    color: #1a1a1a;
    /* Dark charcoal for premium legibility */
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.detailed-history-content p:last-child {
    margin-bottom: 0;
}

.mv-section {
    padding: 100px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background-color: var(--neon-green);
    /* Vibrant Neon Green */
    color: var(--navy-blue);
    /* Deep Dark Navy for contrast */
    padding: 70px 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
    transition: transform 0.3s ease;
}

.mv-card h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--navy-blue);
    /* Force Navy color */
}

.mv-card p {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--navy-blue);
    /* Force Navy color */
    text-align: justify;
    margin-top: 15px;
}

.mv-card:hover {
    transform: translateY(-10px);
}

/* Responsive Sobre */
@media (max-width: 992px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .focused-history-box {
        padding: 40px;
        margin: 0 20px;
    }

    .focused-history-box h1 {
        font-size: 2.2rem;
    }
}

/* Contact Page Specific Styles */
.contact-page-content {
    background-color: #f4f4f4;
    min-height: 100vh;
}

.contact-hero {
    background-color: var(--navy-blue);
    padding: 150px 0 100px;
    text-align: center;
    color: var(--white);
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-section {
    padding: 100px 0;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--white);
    padding: 40px 30px;
    /* More vertical breath */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.1);
}

.contact-info-card i {
    font-size: 3rem;
    /* More generous size */
    color: var(--navy-blue);
    margin-bottom: 25px;
    /* Uniform spacing */
    display: block;
}

.contact-info-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 15px;
    /* Regular breath */
    color: var(--navy-blue);
    text-transform: uppercase;
}

.contact-info-card p {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
}

.contact-info-card .handle {
    color: var(--navy-blue);
    font-weight: 900;
}

.contact-email-link,
.contact-social-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.contact-email-link:hover,
.contact-social-link:hover {
    color: var(--neon-green);
}

.contact-email-link:hover i,
.contact-email-link:hover h3,
.contact-email-link:hover .handle,
.contact-social-link:hover i,
.contact-social-link:hover h3,
.contact-social-link:hover .handle {
    color: var(--neon-green);
}

/* Form Styles */
.contact-form-column {
    background: var(--navy-blue);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ccc;
    font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 15px var(--neon-green-glow);
    background: rgba(0, 255, 0, 0.02);
}

.btn-send {
    background: var(--neon-green);
    color: var(--navy-blue);
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-send:hover {
    box-shadow: 0 0 25px var(--neon-green);
    transform: translateY(-3px);
}

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

@media (max-width: 768px) {

    /* Emergency Mobile Reset & Word Break Protection */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
        hyphens: none !important;
        word-break: normal !important;
        /* Prevent cutting words like SBCB */
        text-align: center !important;
    }

    body {
        padding: 0 !important;
    }

    .container,
    .container-full {
        padding: 0 20px !important;
        /* Safe margins for text */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix Title Overlap - Header Offset for Internal Pages */
    .hero,
    .section:first-of-type,
    main {
        padding-top: 100px !important;
    }

    .section {
        padding: 40px 0 !important;
    }

    /* Forced Stacking & Global Centering */
    .grid-2,
    .grid-2-reversed,
    .grid-2-inverted,
    .hero-container,
    .grid-footer,
    .polaroid-grid,
    .polaroid-grid-3,
    .polaroid-grid-5,
    .grid-2x2,
    .impacto-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
        width: 100% !important;
        align-items: center !important;
    }

    /* Font Scaling for Titles */
    .section-title,
    h2 {
        font-size: 1.3rem !important;
        /* Scaled down for single line */
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }

    .hero-title,
    h1 {
        font-size: 1.7rem !important;
        /* Scaled down for mobile */
        line-height: 1.1 !important;
        text-align: center !important;
    }

    h3,
    h4,
    h5,
    h6 {
        font-size: 1.1rem !important;
        text-align: center !important;
    }

    p,
    .intro-description,
    .impact-description {
        font-size: 1rem !important;
        text-align: center !important;
        padding: 0 10px !important;
        width: 100% !important;
        margin: 10px auto !important;
        line-height: 1.5 !important;
    }

    /* Buttons Centering */
    .btn,
    .btn-primary,
    .btn-white {
        display: block !important;
        margin: 20px auto !important;
        width: fit-content !important;
        text-align: center !important;
    }

    /* Navbar & 3-Line Menu Styling */
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
        height: 70px !important;
    }

    .navbar .logo {
        font-size: 0.78rem !important;
        /* Slightly smaller to prevent pushing menu-toggle */
        white-space: nowrap !important;
        text-align: left !important;
        letter-spacing: 0.5px !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        cursor: pointer !important;
        z-index: 2001 !important;
    }

    .menu-toggle span {
        width: 30px !important;
        height: 3px !important;
        background-color: white !important;
        margin: 4px 0 !important;
        display: block !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column !important;
        background: #050a18 !important;
        /* Navy Blue */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 1999 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.4rem !important;
        margin: 12px 0 !important;
        color: white !important;
    }

    /* SBCB Specific Mobile Overrides */
    .sbcb-hero {
        padding-top: 120px !important;
        min-height: auto !important;
    }

    .section-sbcb-history .container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    .sbcb-image-side,
    .sbcb-text-side {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .sbcb-text-box {
        padding: 0 10px !important;
    }

    .sbcb-text-box p,
    .detailed-history-content p {
        text-align: center !important;
        line-height: 1.6 !important;
        font-size: 1.05rem !important;
    }

    .detailed-history-content {
        padding: 40px 20px !important;
        /* Fixed: Removed 15% lateral padding */
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Sobre Specific Mobile Overrides (Aggressive Fix) */
    .container-history {
        padding: 0 25px !important;
        /* Requested 25px margin */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .focused-history-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .history-header-box {
        border-left: none !important;
        padding-left: 0 !important;
        text-align: center !important;
        margin-bottom: 30px !important;
        width: 100% !important;
    }

    .history-title {
        font-size: 1.65rem !important;
        /* Slightly smaller for better fit */
        text-align: center !important;
        width: 100% !important;
    }

    .history-text-content {
        padding: 0 !important;
        margin: 30px 0 0 0 !important;
        /* No lateral margins */
        width: 100% !important;
        max-width: 100% !important;
    }

    .history-text-content p {
        text-align: center !important;
        line-height: 1.6 !important;
        font-size: 1.05rem !important;
        color: var(--white) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mv-card {
        padding: 40px 25px !important;
        width: 100% !important;
    }

    /* Polaroid Layout Fixes */
    .polaroid-item {
        transform: rotate(0) !important;
        margin: 0 auto 25px !important;
        width: 100% !important;
        max-width: 90% !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }
}


@media (max-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 40px;
    }

    .contact-form-column {
        padding: 40px 25px;
    }
}

/* Google Maps Footer Integration */
.footer-map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--neon-green);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.1);
    background-color: #f8f8f8;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Neon Footer Variant for Contact Page */
.footer-neon {
    background-color: var(--neon-green) !important;
    color: var(--navy-blue) !important;
}

.footer-neon .footer-menu h3::after {
    background-color: var(--navy-blue);
}

.footer-neon .footer-menu a {
    color: var(--navy-blue) !important;
}

.footer-neon .footer-menu a:hover,
.footer-neon .footer-menu a.active {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-neon .map-overlay {
    background: rgba(5, 10, 24, 0.1);
    color: var(--navy-blue);
    border: 2px dashed var(--navy-blue);
}

.footer-neon .map-placeholder {
    background-color: rgba(5, 10, 24, 0.05);
}

.footer-neon .map-placeholder p {
    color: var(--navy-blue);
    opacity: 0.8;
}

/* Teams Page Styles */
.teams-section {
    padding: 120px 0;
    min-height: 80vh;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--elite-green);
    box-shadow: 0 30px 60px rgba(30, 174, 95, 0.15);
}

.team-logo-container {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-logo {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin: 0;
}

/* Specific highlight for title */
.teams-title {
    color: var(--elite-green) !important;
    text-shadow: 0 0 20px rgba(30, 174, 95, 0.3);
}

@media (max-width: 992px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .team-card {
        padding: 40px 20px;
    }
}