html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: #ffffff !important;
    font-family: "Rawline", sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
}

/* ========================================
   HERO BANNER
   ======================================== */

.copsul-hero {
    position: relative;
    width: 100vw;
    height: 80vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    min-height: 500px;
    margin-top: 150px;
    font-family: "Rawline";
}

@media (max-width: 1200px) {
    .copsul-hero {
        margin-top: 0;
    }
}

.copsul-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.copsul-hero-logo {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.copsul-hero-logo-img {
    height: 120px;
    width: auto;
    max-width: 90vw;
}

.copsul-partner-logo-img-pelotas {
    height: auto;
    width: 119px;
}

.copsul-partner-logo-img-ufpel {
    height: auto;
    width: 185px;
}

.copsul-partner-logo-img-ifsul {
    height: auto;
    width: 142px;
}

.copsul-hero-btn {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: #36A5FD;
    color: white;
    padding: 6px 60px;
    border-radius: 50px;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
}

.copsul-hero-btn:hover {
    background-color: #1E8BE0;
    color: white;
}

.copsul-hero-partners {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    z-index: 10;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .copsul-hero-logo {
        top: 40px;
    }

    .copsul-hero-logo-img {
        height: 80px;
    }

    .copsul-hero-btn {
        bottom: 120px;
        padding: 0.8rem 2.2rem;
        font-size: 1rem;
    }

    .copsul-hero-partners {
        bottom: 20px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .copsul-hero-logo {
        top: 30px;
    }

    .copsul-hero-logo-img {
        height: 60px;
    }

    .copsul-hero-btn {
        bottom: 180px;
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }

    .copsul-hero-partners {
        bottom: 15px;
        gap: 1rem;
    }

    .copsul-partner-logo-img {
        height: 40px;
    }
}

/* ========================================
   PARTNERS LOGOS
   ======================================== */

.copsul-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: #1a1a1a;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.copsul-partner-logo {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background-color: #2a2a2a;
    border-radius: 5px;
}

.copsul-partner-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-height: 80px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .copsul-partners {
        flex-direction: column;
        gap: 1rem;
    }

    .copsul-partner-logo-img {
        height: 50px;
    }
}

/* ========================================
   EVENT INTRODUCTION SECTION
   ======================================== */

.copsul-intro {
    max-width: 1200px;
    padding: 6rem 2rem;
    margin: 0 auto;
}

.copsul-intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.copsul-logo-section,
.copsul-intro-media {
    flex: 1 1 0;
    min-width: 300px;
}

.copsul-intro-media {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.copsul-intro-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.copsul-activity {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.copsul-activity-text {
    display: inline-block;
}

.copsul-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.copsul-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
}

.copsul-tag-icon img {
    width: 16px;
    height: 16px;
}

.copsul-tag-legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    min-width: 180px;
    justify-content: center;
}

.copsul-tags-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.copsul-card-tags {
    align-items: flex-start;
}

.copsul-card-tags-icons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.copsul-logo-section {
    display: flex;
    flex-direction: column;
}

.copsul-logo-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.copsul-logo-main {
    font-size: 5rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    position: relative;
}

.copsul-logo-main::after {
    content: "🌳🌊🐾";
    display: block;
    font-size: 1.5rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.copsul-logo-year {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 2rem;
}

.copsul-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
}

.copsul-btn-inscrever {
    background-color: #4caf50;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s;
}

.copsul-btn-inscrever:hover {
    background-color: #45a049;
    color: white;
    text-decoration: none;
}

.copsul-video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.copsul-video-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.copsul-videos {
    padding: 40px 0;
    border-radius: 16px;
}
.copsul-videos .container {
    max-width: 1200px;
    margin: 0 auto;
}
.copsul-videos .copsul-program-title {
    font-size: 32px;
    margin: 0 0 20px;
    border: none;
    font-weight: 400;
}

.copsul-video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 8px 0 40px;
    justify-content: space-between;
}
.copsul-video-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    flex: 1 1 calc(33.333% - 24px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 120ms ease, transform 120ms ease;
}
.copsul-video-card iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 8px;
}
.copsul-video-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
@media (min-width: 992px) {
    .copsul-video-card {
        flex-basis: calc(33.333% - 24px);
    }
    .copsul-video-placeholder {
        aspect-ratio: 3/2;
    }
}
@media (max-width: 767px) {
    .copsul-video-card {
        flex-basis: 100%;
    }
}

.copsul-video-play {
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}
.copsul-video-time {
    font-size: 17px;
    font-weight: 500;
    color: #555;
    margin: 2px 0 8px;
    line-height: 1.35;
}
.copsul-video-title {
    font-size: 18px;
    font-weight: 700;
    color: #2a2a31;
    margin: 0 0 8px;
}

@media (max-width: 991px) {
    .copsul-intro {
        padding: 3rem 1.5rem 0;
    }

    .copsul-intro-content {
        flex-direction: column;
    }

    .copsul-logo-section {
        text-align: center;
        align-items: center;
    }

    .copsul-logo-img {
        max-width: 300px;
        margin-bottom: 0.5rem;
    }

    .copsul-logo-year {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .copsul-intro-text {
        font-size: 1.05rem;
        line-height: 1.7;
        text-align: left;
    }

    .copsul-btn-inscrever {
        padding: 1rem 2.5rem;
        font-size: 1.05rem;
        width: 100%;
        max-width: 100%;
        font-weight: 700;
        margin-bottom: 2rem;
    }

    .copsul-video-placeholder {
        aspect-ratio: 16/9;
        margin-bottom: 3rem;
    }

    .copsul-video-play {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* ========================================
   PROGRAM SECTION
   ======================================== */

.copsul-program {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

/* Controle de visibilidade das seções via JavaScript */
.copsul-table-section.hidden-section {
    display: none !important;
}

/* Toggle de layout: mobile x desktop */
/* Por padrão (desktop), mostra tabelas e esconde cards */
.copsul-program .copsul-table-wrapper {
    display: block !important;
}

.copsul-program .copsul-cards {
    display: none !important;
}

/* Mobile: esconde tabelas e mostra cards */
@media only screen and (max-width: 991px) {
    .copsul-program .copsul-table-wrapper {
        display: none !important;
    }

    .copsul-program .copsul-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
    }
}

@media only screen and (max-width: 768px) {
    section.copsul-program .copsul-table-wrapper,
    .copsul-table-section .copsul-table-wrapper {
        display: none !important;
    }

    section.copsul-program .copsul-cards,
    .copsul-table-section .copsul-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
    }
}

.copsul-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.copsul-program-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    margin: 0;
}

.copsul-period-header {
    --period-color: #0ba360;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    color: var(--period-color);
}

.copsul-period-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.copsul-period-line {
    flex: 1;
    height: 2px;
    background-color: var(--period-color);
}

.copsul-period-tag {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    color: var(--period-color);
}

.copsul-period-paralelas {
    --period-color: #0ba360;
}
.copsul-period-presenciais {
    --period-color: #f39c1d;
}

.copsul-program-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.copsul-filter-btn {
    color: #ffffff;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.copsul-filter-btn-paralelas {
    background-color: #12ad56;
}
.copsul-filter-btn-paralelas:hover,
.copsul-filter-btn-paralelas.active {
    background-color: #0d9a4c;
}

.copsul-filter-btn-presenciais {
    background-color: #f39c1d;
    color: #ffffff;
}
.copsul-filter-btn-presenciais:hover,
.copsul-filter-btn-presenciais.active {
    background-color: #da8b13;
}

.copsul-program-period {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4caf50;
    text-decoration: underline;
    margin-bottom: 1rem;
    display: inline-block;
}

.copsul-program-period.presenciais {
    color: #ff9800;
}

/* ========================================
   PROGRAM TABLES
   ======================================== */

.copsul-table-section {
    margin-bottom: 8rem;
}

.copsul-table-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4caf50;
    margin-bottom: 1rem;
}

.copsul-table-label.presenciais {
    color: #ff9800;
}

.copsul-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.copsul-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: none;
}

.copsul-table thead {
    background-color: #ffffff;
    text-align: left;
    border-bottom: 1px solid #d0d0d0;
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 1rem;
}

.copsul-table thead tr {
    padding-bottom: 1rem;
}

.copsul-table thead th {
    padding-bottom: 1.5rem;
}

/* Table theme grouping */
.copsul-table tbody tr {
    border-bottom: none;
}

.copsul-theme-divider td {
    height: 0;
    padding: 0;
    border-bottom: 1px solid #d0d0d0;
}

.copsul-theme-cell {
    vertical-align: middle;
}

.copsul-table th:first-child,
.copsul-table td:first-child {
    padding-left: 0;
}

.copsul-table tbody tr.same-day td, .copsul-table tbody tr.day-start td {
    padding-top: 1rem;
}

.copsul-table td {
    padding: 1.05rem 1.25rem;
    color: #1f1f1f;
    font-size: 19px;
    line-height: 1.55;
    vertical-align: middle;
    padding-left: 0;
}

.copsul-table th:nth-child(1),
.copsul-table td:nth-child(1) {
    width: 8%;
}
.copsul-table th:nth-child(2),
.copsul-table td:nth-child(2) {
    width: 20%;
}

.copsul-table th:nth-child(2) {
    padding-left: 2rem;
}

.copsul-table td.copsul-time-cell {
    padding-left: 2rem !important;
}
.copsul-table th:nth-child(3),
.copsul-table td:nth-child(3) {
    width: 35%;
}
.copsul-table th:nth-child(4),
.copsul-table td:nth-child(4) {
    width: 16%;
}
.copsul-table th:nth-child(5),
.copsul-table td:nth-child(5) {
    width: 30%;
}

.copsul-table td:nth-child(2),
.copsul-table td:nth-child(4) {
    font-size: 18px;
    color: #111;
    font-weight: 300;
}

.copsul-table td:nth-child(3) {
    font-size: 16px;
    color: #111;
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}

.copsul-table tbody tr:hover {
    background-color: #ffffff;
}

.copsul-date-cell {
    text-align: center;
    min-width: 96px;
    vertical-align: middle;
}

.copsul-date-weekday {
    display: block;
    font-size: 16px;
    font-weight: 300;
    color: #131313;
    margin-bottom: 0.35rem;
}

.copsul-date-number {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: #000000;
}

.copsul-table .theme-start + .same-theme td {
    border-top: none;
}

.theme-start .copsul-theme-cell {
    border-left: 1px solid #e0e0e0;
}

.same-theme .copsul-theme-cell {
    display: none;
}

@media (max-width: 768px) {
    .copsul-program {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }

    .copsul-program-title {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
        font-weight: 900;
    }

    .copsul-program-filters {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .copsul-filter-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 700;
        justify-content: center;
    }

    .copsul-period-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .copsul-period-title {
        font-size: 32px;
        font-weight: 800;
    }

    .copsul-period-tag {
        font-size: 18px;
        font-weight: 600;
    }

    .copsul-period-header .copsul-period-line {
        width: 100%;
    }

    .copsul-card {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1.5rem;
        border: 1px solid #e0e0e0;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: box-shadow 0.2s;
    }

    .copsul-card:hover {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    /* Em eventos do mesmo dia, remove coluna de data para não gerar espaço vazio */
    .copsul-card.same-day {
        grid-template-columns: 1fr;
    }
    .copsul-card.same-day .copsul-card-date {
        display: none;
    }

    .copsul-card-date {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0.5rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 12px;
        min-width: 70px;
    }

    /* Cores para paralelas (verde) */
    .copsul-card-green .copsul-card-entry {
        border-left-color: #0ba360 !important;
    }

    .copsul-card-green .copsul-date-weekday {
        color: #0ba360 !important;
    }

    /* Cores para presenciais (laranja) */
    .copsul-card-orange .copsul-card-entry {
        border-left-color: #f39c1d !important;
    }

    .copsul-card-orange .copsul-date-weekday {
        color: #f39c1d !important;
    }

    .copsul-card-body {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .copsul-card-events {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .copsul-card-entry {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
        background: #fafbfc;
        border-radius: 12px;
        border-left: 4px solid #0ba360;
    }

    .copsul-card-entry + .copsul-card-entry {
        margin-top: 0;
    }

    .copsul-card-row {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .copsul-card-label {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #6c757d;
        font-weight: 700;
    }

    .copsul-card-value {
        font-size: 1.05rem;
        color: #212529;
        line-height: 1.5;
        font-weight: 500;
    }

    .copsul-date-weekday {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        color: #0ba360;
        display: block;
        margin-bottom: 0.25rem;
        font-weight: 700;
        text-align: center;
    }

    .copsul-date-number {
        font-size: 2.5rem;
        line-height: 1;
        font-weight: 800;
        color: #212529;
        text-align: center;
    }
}

/* ========================================
   GENERAL STYLES
   ======================================== */

.copsul-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.copsul-section {
    margin-bottom: 4rem;
}
