/* Variables */
:root {
    --primary-color: #1ac984;
    --dark-bg: #111;
    --card-bg: #1a1a1a;
    --text-white: #fff;
    --text-gray: #aaa;
    --bg-white: #ffffff;
    --text-black: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-black);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section (Slider) */
.hero-slider {
    position: relative;
    height: 520px;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--text-white);
}

.badge {
    background-color: var(--primary-color);
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 2px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin: 15px 0 50px 0;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.hero-dots {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Floating Cards */
.floating-cards {
    margin-top: -80px;
    position: relative;
    z-index: 3;
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card-mini {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    color: var(--text-black);
}

.card-mini:hover {
    transform: translateY(-5px);
}

.card-mini h5 {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-mini p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
}

.read-more {
    display: none;
}

.title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.title-link:hover {
    color: var(--primary-color);
}

/* Em Alta Section (Grid) */
.em-alta {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-right: 20px;
    text-transform: uppercase;
}

.line {
    height: 4px;
    background-color: var(--primary-color);
    flex-grow: 1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.news-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-white);
}

.news-overlay h3 {
    font-size: 18px;
    margin: 5px 0;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Large Card takes 2x2 */
.news-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.news-card.large h3 {
    font-size: 28px;
}

/* Videos Section (Carousel) */
.videos-section {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 160px 0;
    margin: 40px 0;
}

.videos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.videos-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.videos-section h2 span {
    color: var(--primary-color);
}


.videos-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.videos-carousel .video-card {
    scroll-snap-align: start;
    min-width: 280px;
}

.videos-carousel-wrapper {
    position: relative;
    width: 100%;
}

.agenda-slider {
    position: relative;
}

.agenda-viewport {
    overflow: hidden;
    width: 100%;
}

.agenda-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s ease;
    padding: 6px 0;
}

.agenda-track .agenda-card {
    flex: 0 0 300px;
}

.agenda-nav {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.agenda-nav:hover {
    background: rgba(255, 255, 255, 0.16);
}

.agenda-prev {
    left: -60px;
}

.agenda-next {
    right: -60px;
}

.agenda-controls {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}

.agenda-filters {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.agenda-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.agenda-field i {
    color: var(--primary-color);
    font-size: 14px;
    flex: 0 0 auto;
}

.agenda-field input {
    background: transparent;
    color: inherit;
    border: none;
    padding: 0;
    width: 100%;
    outline: none;
    font-size: 13px;
}

.agenda-field input::placeholder {
    color: #cfd4dc;
    opacity: 0.9;
}

.agenda-field input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    padding-right: 6px;
}

.agenda-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}

.agenda-date {
    min-width: 170px;
    position: relative;
}

.agenda-date-toggle {
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    width: 100%;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    opacity: 0.9;
    font-weight: 600;
}

.agenda-date-toggle.filled {
    opacity: 1;
}

.agenda-calendar {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #0f1116;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px;
    width: 320px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
    z-index: 7;
}

.agenda-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.agenda-cal-nav {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.agenda-cal-nav:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.agenda-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.agenda-cal-weekday {
    color: #9aa3b5;
    font-size: 11px;
    text-align: center;
    font-weight: 700;
}

.agenda-cal-empty {
    height: 1px;
}

.agenda-cal-day {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 0;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: 0.15s ease;
    position: relative;
}

.agenda-cal-day span {
    position: relative;
    z-index: 2;
}

.agenda-cal-day.today {
    border-color: var(--primary-color);
}

.agenda-cal-day.selected {
    background: linear-gradient(135deg, var(--primary-color), #ffd166);
    color: #000;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.agenda-cal-day:hover:not(.selected) {
    border-color: rgba(255, 255, 255, 0.35);
}

.agenda-cal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.agenda-cal-actions button {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.agenda-cal-actions button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-agenda-all {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 8px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-agenda-all:hover {
    color: var(--primary-color);
}

.agenda-local-wrapper {
    position: relative;
    min-width: 240px;
}

.agenda-local-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0f1116;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    margin-top: 0;
    max-height: 240px;
    overflow-y: auto;
    z-index: 5;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    padding: 6px 0;
}

.agenda-local-suggestions:empty {
    display: none;
}

.agenda-local-suggestions button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #f1f1f1;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
}

.agenda-local-suggestions button span {
    color: #9aa3b5;
    font-size: 12px;
}

.agenda-local-suggestions button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.video-card.hidden {
    display: none;
}

@media (max-width: 1100px) {
    .agenda-prev {
        left: 6px;
    }

    .agenda-next {
        right: 6px;
    }
}

@media (max-width: 768px) {
    .agenda-field {
        width: 100%;
        min-width: 0;
    }

    .agenda-calendar {
        width: 100%;
        left: 0;
        right: 0;
    }

    .agenda-local-wrapper {
        min-width: 0;
    }

    .agenda-nav {
        display: none;
    }

    .agenda-track {
        gap: 14px;
    }

    .agenda-track .agenda-card {
        flex-basis: 240px;
    }
}

.video-card {
    min-width: 280px;
    cursor: pointer;
    position: relative;
}

.video-thumb {
    position: relative;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-white);
    transition: background-color 0.3s;
}

.video-card:hover .play-btn {
    background-color: var(--primary-color);
    color: #000;
}

.video-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-tag {
    font-size: 10px;
    background-color: red;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: bold;
    margin-right: 5px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .news-card.large {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .news-card {
        height: 200px;
    }
}

/* Content Block (Complex) */
.content-block {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.complex-grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.complex-grid-container.two-cols {
    grid-template-columns: 1fr;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .complex-grid-container {
        grid-template-columns: 1fr;
        /* Stack on smaller screens */
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }
}

/* Latest List (Vertical) */
.news-list-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-thumb {
    flex: 0 0 200px;
}

.news-list-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.news-list-content {
    flex: 1;
}

.news-list-content .time {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

.news-list-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.3;
}

.news-list-content h3 a:hover {
    color: #444;
}

.news-list-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar */
.sidebar-section {
    margin-bottom: 40px;
}

.most-viewed-list {
    margin-top: 20px;
}

.most-viewed-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.most-viewed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.most-viewed-item .number {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-right: 20px;
    min-width: 25px;
    text-align: center;
    font-style: italic;
}

.most-viewed-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #333;
}

.most-viewed-item:hover h4 {
    color: var(--primary-color);
}

/* Exclusive Card */
.exclusive-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    /* Reduced height for better proportion */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exclusive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.exclusive-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.badge-exclusive {
    background: var(--primary-color);
    color: #000;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    align-self: flex-start;
    border-radius: 2px;
}

.exclusive-overlay h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.exclusive-overlay p {
    font-size: 13px;
    color: #ddd;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Related Section */
.related-section {
    margin-top: 40px;
}

.related-section .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    /* Reset bootstrap row margins */
}

.related-section .col-md-3 {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
    /* Reset bootstrap col padding */
}

.related-card {
    margin-bottom: 20px;
}

.related-thumb {
    position: relative;
    margin-bottom: 10px;
}

.related-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.related-thumb .badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .news-list-item {
        flex-direction: column;
    }

    .news-list-thumb img {
        height: 200px;
    }

    .col-lg-4 {
        margin-top: 40px;
    }

    .related-section .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-section .row {
        grid-template-columns: 1fr;
    }
}
