@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Display:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

body {
    font-family: "Roboto", "Noto Sans Display", -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    background-color: white;
    color: black;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
._header {
    background: linear-gradient(to bottom, #9bdcf8, #4cb1e9, #4cb1e9);
    border-bottom: 4px solid #2a7bba;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

._header img {
    max-height: 50px;
}

._header-buttons {
    display: flex;
    gap: 16px;
}

._btn-members {
    background-color: #2a7bba;
    border: 1px solid #2a7bba;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

._btn-members:hover,
._btn-members:focus,
._btn-members:active {
    background-color: #0d4775;
    border-color: #0d4775;
}

._btn-join {
    background-color: #ff1c6e;
    border: 1px solid #ff1c6e;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

._btn-join:hover,
._btn-join:focus,
._btn-join:active {
    background-color: #e50053;
    border-color: #e50053;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    ._header {
        justify-content: center;
    }

    ._header-buttons {
        display: none;
    }
}

/* Video grid container */
._thumbnails-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
}

/* Responsive grid columns */
@media (min-width: 640px) {
    ._thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    ._thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    ._thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    ._thumbnails-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Video item styles */
._video-item img {
    border: 3px solid black;
    width: 100%;
    height: auto;
    box-sizing: border-box; /* Include border in width calculation */
    display: block;
}

._video-info {
    margin-top: -6px;
    /* Add padding to match the border width of the image */
    padding-left: 3px;
    padding-right: 3px;
    box-sizing: border-box;
}

._video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

._stat-item {
    font-size: 15px;
    font-weight: 500;
    color: black;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

._stat-item i {
    color: #6b7280;
}

._rating {
    font-size: 14px;
    color: #ec4899;
    margin-bottom: 0;
    display: flex;
    gap: 4px;
    text-align: right;
}

/* Pagination navigation */
._pagination-nav {
    margin-top: 12px;
    margin-bottom: 20px;
}

._pagination-list {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

._pagination-item {
    display: block;
}

._pagination-item.hidden-mobile {
    display: none;
}

._pagination-item.hidden-tablet {
    display: none;
}

/* Base pagination link styles */
._pagination-link {
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

/* Default pagination link */
._pagination-link-default {
    background-color: #2a7bba;
    transition: background-color 0.2s ease;
}

._pagination-link-default:hover {
    background-color: #0d4775;
}

/* Active/current page */
._pagination-link-active {
    background-color: #0d4775;
}

/* Disabled pagination link */
._pagination-link-disabled {
    background-color: #2a7bba;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive visibility */
@media (min-width: 640px) {
    ._pagination-item.hidden-mobile {
        display: block;
    }

    ._pagination-item.show-mobile-only {
        display: none;
    }
}

@media (min-width: 768px) {
    ._pagination-item.hidden-tablet {
        display: block;
    }
}

/* Footer CTA container */
._footer-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

._footer-cta-wrapper {
    display: flex;
    justify-content: center;
}

._footer-cta-button {
    color: white;
    font-weight: bold;
    background-color: #ff0084;
    text-transform: uppercase;
    border-radius: 0;
    padding: 20px;
    width: 100%;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.2s ease;
}

._footer-cta-button:hover {
    background-color: #e50053;
}

/* Responsive width adjustments */
@media (min-width: 1024px) {
    ._footer-cta-button {
        width: 75%;
    }
}

@media (min-width: 1280px) {
    ._footer-cta-button {
        width: 75%;
    }
}

@media (min-width: 1536px) {
    ._footer-cta-button {
        width: 75%;
    }
}

/* Footer styles */
._footer {
    padding: 40px 0;
}

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

._footer-content {
    text-align: center;
    color: #6b7280;
}

._footer-content > * + * {
    margin-top: 16px;
}

._footer-links {
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

._footer-link {
    color: black;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
}

._footer-link:hover {
    text-decoration: underline;
}

._footer-text {
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

._footer-email {
    color: black;
    font-weight: 500;
    text-decoration: none;
}

._footer-email:hover {
    text-decoration: underline;
}

/* Mobile buttons under header - only visible on mobile */
._mobile-buttons {
    display: flex;
    width: 100%;
    gap: 0;
}

._mobile-btn {
    flex: 1;
    background-color: #2a7bba;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
}

._mobile-btn:first-child {
    background-color: #2a7bba;
}

._mobile-btn:last-child {
    background-color: #ff1c6e;
}

._mobile-btn:first-child:hover {
    background-color: #0d4775;
}

._mobile-btn:last-child:hover {
    background-color: #e50053;
}

/* Hide mobile buttons on larger screens */
@media (min-width: 769px) {
    ._mobile-buttons {
        display: none;
    }
}

/* Show mobile buttons only on mobile */
@media (max-width: 768px) {
    ._mobile-buttons {
        display: flex;
    }
}
