/**
 * GPF Resource Center Styles
 */

/* General */
.gpf-restricted-content {
    padding: 30px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 30px;
    text-align: center;
}

.gpf-restricted-message {
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Document Styles */
.gpf-document-download {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.gpf-document-download h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.gpf-document-download-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff !important;
    padding: 4px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
    transition: background-color 0.2s ease;
}

.gpf-document-download-button:hover {
    background-color: #006291;
    color: #fff !important;
    text-decoration: none;
}

/* Documents Table Layout */
.gpf-documents-section {
    margin: 30px 0;
}

.gpf-documents-search {
    margin-bottom: 20px;
}

.gpf-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.gpf-documents-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.gpf-filter {
    display: flex;
    align-items: center;
}

.gpf-filter label {
    margin-right: 10px;
    font-weight: bold;
}

.gpf-filter select {
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gpf-documents-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.gpf-documents-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
}

.gpf-documents-table th,
.gpf-documents-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.gpf-documents-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.gpf-documents-table tr:hover {
    background-color: #f9f9f9;
}

.gpf-document-excerpt {
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.gpf-column-name {
    width: 35%;
}

.gpf-column-category {
    width: 20%;
}

.gpf-column-type {
    width: 10%;
    text-align: center;
}

.gpf-column-date {
    width: 15%;
}

.gpf-column-download {
    width: 15%;
    text-align: center;
}

.gpf-document-row .gpf-column-category,
.gpf-document-row .gpf-column-type,
.gpf-document-row .gpf-column-date,
.gpf-document-row .gpf-column-download {
    font-size: 14px;
}

/*.gpf-document-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    text-align: center;
    font-weight: bold;
    background-color: #f1f1f1;
}*/

/* File type colors */
/* .gpf-document-type.pdf {
    background-color: #f40f02;
    color: white;
}

.gpf-document-type.doc {
    background-color: #295396;
    color: white;
}

.gpf-document-type.xls {
    background-color: #1e7145;
    color: white;
}

.gpf-document-type.ppt {
    background-color: #d24625;
    color: white;
}

.gpf-document-type.zip {
    background-color: #ffc107;
    color: #333;
}

.gpf-document-type.txt {
    background-color: #607d8b;
    color: white;
}
*/
.gpf-no-results {
    padding: 20px;
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.gpf-no-download {
    color: #999;
    font-style: italic;
}

/* Legacy List Style Support */
.gpf-documents-list {
    margin: 20px 0;
}

.gpf-document-item {
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.gpf-document-item:last-child {
    border-bottom: none;
}

.gpf-document-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.gpf-document-meta {
    font-size: 0.9em;
    color: #777;
}

.gpf-document-download-link {
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
}

/* Video Styles */
.gpf-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 30px;
}

.gpf-video-container iframe,
.gpf-video-container object,
.gpf-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Grid Layout */
.gpf-videos-section {
    margin: 30px 0;
}

.gpf-videos-search {
    margin-bottom: 20px;
}

.gpf-videos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.gpf-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 25px;
    margin-bottom: 20px;
}

.gpf-video-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gpf-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gpf-video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gpf-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gpf-video-item:hover .gpf-video-thumbnail img {
    transform: scale(1.05);
}

.gpf-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.gpf-video-play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.gpf-video-item:hover .gpf-video-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 115, 170, 0.8);
}

.gpf-video-content {
    padding: 15px;
}

.gpf-video-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.3;
}

.gpf-video-categories {
    margin-bottom: 8px;
}

.gpf-video-category {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 3px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 12px;
}

.gpf-video-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 8px;
}

/* Event Styles - UPDATED */
.gpf-event-details {
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.gpf-event-details h3 {
    margin-top: 0;
    font-size: 1.2em;
}

/* Event Section and Container Styles */
.gpf-events-section {
    margin: 30px 0;
}

.gpf-events-views-container {
    margin-top: 20px;
}

/* View Toggle Buttons */
.gpf-view-toggle {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.gpf-view-toggle label {
    margin-right: 10px;
    font-weight: 600;
}

.gpf-toggle-buttons {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gpf-view-button {
    padding: 6px 12px;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gpf-view-button:first-child {
    border-right: 1px solid #ddd;
}

.gpf-view-button.active {
    background-color: #0073aa;
    color: white;
}

.gpf-view-button:hover:not(.active) {
    background-color: #e5e5e5;
}

/* Month Header Style */
.gpf-month-header {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-left: 4px solid #0073aa;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.gpf-events-month:first-child .gpf-month-header {
    margin-top: 0;
}

/* Updated Event Items for Agenda View */
.gpf-events-list {
    margin: 0;
}

.gpf-event-item {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gpf-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gpf-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gpf-event-date {
    flex: 0 0 80px;
    background-color: #0073aa;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gpf-event-month {
    text-transform: uppercase;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 3px;
}

.gpf-event-day {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
}

.gpf-event-content {
    flex: 1;
}

.gpf-event-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Event categories display */
.gpf-event-categories {
    margin-bottom: 10px;
}

.gpf-event-category {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 3px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* Featured event indicator */
.gpf-featured-badge {
    display: inline-block;
    background-color: #ffc107;
    color: #333;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.gpf-event-featured {
    border-left: 3px solid #ffc107;
    padding: 10px;
    background-color: rgba(255, 193, 7, 0.05);
}

/* Create a new class specifically for the featured badge when in video thumbnails */
.gpf-video-thumbnail .gpf-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffc107;
    color: #333;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2; /* Ensure it appears above the thumbnail */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Optional shadow for better visibility */
}

/* Hide the standard featured badge in video titles when a thumbnail badge exists */
.gpf-video-item .gpf-video-thumbnail .gpf-featured-badge ~ .gpf-video-content h4 .gpf-featured-badge {
    display: none;
}

/* Style adjustments for consistent appearance */
.gpf-video-featured .gpf-video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #ffc107;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
}


/* Event meta information */
.gpf-event-meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.gpf-event-date-range,
.gpf-event-time,
.gpf-event-location {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}

.gpf-event-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-right: 3px;
}

.gpf-event-excerpt {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Event URL Button */
.gpf-event-actions {
    margin-top: 10px;
}

.gpf-event-url-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.gpf-event-url-button:hover {
    background-color: #006291;
    color: #fff !important;
    text-decoration: none;
}

/* Past event styling */
.gpf-event-past {
    opacity: 0.7;
}

.gpf-event-past .gpf-event-date {
    background-color: #888;
}

/* Calendar View */
.gpf-events-calendar-view {
    margin-top: 20px;
}

.gpf-events-calendar {
    min-height: 500px;
    background-color: white;
}

/* Calendar specific overrides */
.fc-event {
    border-radius: 2px !important;
    border: none !important;
    background-color: #0073aa !important;
    color: white !important;
    font-size: 0.9em !important;
    padding: 2px 5px !important;
}

.fc-event-featured {
    background-color: #ffc107 !important;
    color: #333 !important;
}

.fc-today {
    background-color: rgba(0, 115, 170, 0.1) !important;
}

.fc-button {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-weight: normal !important;
}

.fc-button:hover {
    background-color: #e5e5e5 !important;
}

.fc-button.fc-state-active {
    background-color: #0073aa !important;
    color: white !important;
    border-color: #005c87 !important;
}

.fc-list-empty {
    background-color: #f9f9f9 !important;
    padding: 30px !important;
}

/* Calendar links */
.gpf-event-calendar-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.gpf-calendar-link {
    display: inline-block;
    margin-right: 10px;
    background-color: #f5f5f5;
    color: #333 !important;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gpf-calendar-link:hover {
    background-color: #e5e5e5;
    text-decoration: none;
}

.gpf-google-calendar {
    background-color: #4285F4;
    color: white !important;
    border-color: #3367d6;
}

.gpf-google-calendar:hover {
    background-color: #3367d6;
}

.gpf-no-events {
    padding: 20px;
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Login Form Styles */
.gpf-login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.gpf-login-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.gpf-login-form .login-username,
.gpf-login-form .login-password {
    margin-bottom: 15px;
}

.gpf-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.gpf-login-form .input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gpf-login-form .login-remember {
    margin-bottom: 15px;
}

.gpf-login-form .login-submit {
    text-align: center;
}

.gpf-login-form .button-primary {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.gpf-login-form .button-primary:hover {
    background-color: #006291;
}

.gpf-social-login-container {
    margin-top: 20px;
    text-align: center;
}

/* Dashboard Styles */
.gpf-user-dashboard {
    margin: 20px 0;
}

.gpf-dashboard-welcome {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.gpf-dashboard-welcome h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.gpf-dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.gpf-dashboard-section {
    width: 100%;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.gpf-dashboard-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.gpf-dashboard-section h4 .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.gpf-dashboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gpf-dashboard-list li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
}

.gpf-dashboard-list li:last-child {
    border-bottom: none;
}

.gpf-dashboard-link {
    display: inline-block;
    background-color: #0073aa;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-top: 15px;
}

.gpf-dashboard-link:hover {
    background-color: #006291;
    color: #fff !important;
    text-decoration: none;
}

.gpf-dashboard-actions {
    margin-top: 20px;
}

.gpf-logout-button {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
}

.gpf-logout-button:hover {
    background-color: #e5e5e5;
    text-decoration: none;
}

/* Dashboard Document Table Styles */
.gpf-dashboard-section .gpf-documents-table-container {
    margin-bottom: 15px;
    overflow-x: auto;
}

.gpf-dashboard-section .gpf-documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.gpf-dashboard-section .gpf-documents-table th,
.gpf-dashboard-section .gpf-documents-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.gpf-dashboard-section .gpf-documents-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.gpf-dashboard-section .gpf-column-name {
    width: 40%;
}

.gpf-dashboard-section .gpf-column-category {
    width: 25%;
}

.gpf-dashboard-section .gpf-column-type {
    width: 15%;
    text-align: center;
}

.gpf-dashboard-section .gpf-column-download {
    width: 20%;
    text-align: center;
}

.gpf-dashboard-section .gpf-document-download-button {
    padding: 4px 12px;
    font-size: 0.85em;
    min-width: auto;
}

/* Dashboard Video Grid Styles */
.gpf-dashboard-section .gpf-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-gap: 20px;
    margin-bottom: 15px;
}

.gpf-dashboard-section .gpf-video-item {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gpf-dashboard-section .gpf-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gpf-dashboard-section .gpf-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gpf-dashboard-section .gpf-video-item:hover .gpf-video-thumbnail img {
    transform: scale(1.05);
}

.gpf-dashboard-section .gpf-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gpf-dashboard-section .gpf-video-play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 3px;
}

.gpf-dashboard-section .gpf-video-item:hover .gpf-video-play-button {
    background-color: rgba(0, 115, 170, 0.8);
}

.gpf-dashboard-section .gpf-video-content {
    padding: 10px;
}

.gpf-dashboard-section .gpf-video-content h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    border-bottom: none;
    padding-bottom: 0;
}

.gpf-dashboard-section .gpf-video-categories {
    margin-bottom: 5px;
}

.gpf-dashboard-section .gpf-video-category {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 2px 6px;
    margin-right: 3px;
    margin-bottom: 3px;
    border-radius: 3px;
    font-size: 10px;
}

.gpf-dashboard-section .gpf-video-excerpt {
    font-size: 0.85em;
    color: #666;
}

/* Single-line search and filter layout */
.gpf-search-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.gpf-search-container {
    flex: 1;
    min-width: 200px;
}

.gpf-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.gpf-filter {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.gpf-filter label {
    margin-right: 8px;
    font-weight: 600;
    font-size: 14px;
}

.gpf-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gpf-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        grid-gap: 15px;
    }
    
    .gpf-dashboard-sections {
        display: flex; /* Keep this consistent */
    }
    
    .gpf-dashboard-section {
        margin-bottom: 20px;
    }
    
    .gpf-dashboard-section .gpf-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gpf-search-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gpf-search-container {
        width: 100%;
    }
    
    .gpf-filter {
        width: 100%;
    }
    
    .gpf-filter select {
        width: 100%;
    }
    
    .gpf-view-toggle {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .gpf-toggle-buttons {
        flex: 1;
    }
    
    .gpf-view-button {
        flex: 1;
        text-align: center;
    }
    
    .gpf-event-item {
        flex-direction: column;
    }
    
    .gpf-event-date {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 10px;
        justify-content: flex-start;
    }
    
    .gpf-event-month {
        margin-right: 5px;
    }
    
    /* Calendar responsive fixes */
    .fc-toolbar {
        flex-direction: column;
    }
    
    .fc-left, .fc-center, .fc-right {
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gpf-videos-grid {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .fc-toolbar h2 {
        font-size: 1.2em;
    }
    
    .fc-button {
        padding: 5px 8px !important;
        font-size: 0.9em !important;
    }
}

/**
 * Login form customizations
 * Add this to assets/css/gpf-resource-center.css or create a separate file
 */
.gpf-password-reset-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

.login-action-rp .message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Add this style if you want to hide the "Log in" link after password reset */
.login-action-resetpass p.return-to-login {
    display: none;
}

/* Ensure proper spacing for full width content */
.full-width-content .content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    float: none;
}

.full-width-content .site-inner {
    padding-left: 30px;
    padding-right: 30px;
}

/* Video Lightbox Styles - Complete Overhaul */
.gpf-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow: hidden;
}

.gpf-lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: transparent;
    border-radius: 6px;
}

.gpf-lightbox-content {
    position: relative;
    border-radius: 6px;
    background-color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.gpf-lightbox-title {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.gpf-lightbox-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gpf-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10000;
    padding: 0;
    transition: all 0.2s ease;
}

.gpf-lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .gpf-lightbox-container {
        width: 95%;
        margin: 60px auto 30px;
    }
    
    .gpf-lightbox-title {
        top: 10px;
        font-size: 16px;
    }
    
    .gpf-lightbox-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 26px;
    }
}

@media screen and (max-width: 480px) {
    .gpf-lightbox-container {
        width: 100%;
        margin: 50px auto 20px;
    }
    
    .gpf-lightbox-close {
        top: -35px;
        right: 10px;
    }
}

/* Mobile-friendly document layout CSS */

/* Apply card design on smaller screens */
@media (max-width: 767px) {
    /* Change table display to block */
    .gpf-documents-table {
        display: block;
        border: none;
    }
    
    .gpf-documents-table thead {
        display: none; /* Hide the table headers */
    }
    
    .gpf-documents-table tbody {
        display: block;
        width: 100%;
    }
    
    .gpf-documents-table tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #e5e5e5;
        border-radius: 5px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .gpf-documents-table td {
        display: block;
        width: 100%;
        padding: 5px 0;
        border: none;
        text-align: left;
    }
    
    /* Style document name */
    .gpf-documents-table .gpf-column-name {
        width: 100%;
        font-size: 16px;
        font-weight: bold;
        order: 1;
        padding-bottom: 10px;
    }
    
    /* Create a metadata row for file type and category */
    .gpf-documents-table .gpf-column-type {
        width: auto;
        order: 2;
        text-align: left;
        padding-right: 10px;
    }
    
    .gpf-documents-table .gpf-column-category {
        width: auto;
        flex: 1;
        order: 3;
        font-size: 13px;
    }
    
    /* Add labels for mobile view */
    .gpf-documents-table .gpf-column-category:before {
        content: "Category: ";
        font-weight: bold;
    }
    
    /* Date row */
    .gpf-documents-table .gpf-column-date {
        width: 100%;
        order: 4;
        font-size: 13px;
        color: #666;
        padding-top: 5px;
    }
    
    .gpf-documents-table .gpf-column-date:before {
        content: "Added: ";
        font-weight: bold;
    }
    
    /* Download button row */
    .gpf-documents-table .gpf-column-download {
        width: 100%;
        order: 5;
        text-align: left;
        margin-top: 10px;
    }
    
    /* Make the download button more tappable */
    .gpf-document-download-button {
        display: inline-block;
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        text-align: center;
    }
    
    /* Style the featured badge */
    .gpf-featured-badge {
        display: inline-block;
        margin-left: 5px;
        background-color: #ffc107;
        color: #333;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 12px;
        vertical-align: middle;
    }
    
    /* Improve document type label display */
    .gpf-document-type {
        display: inline-block;
        min-width: 45px;
        text-align: center;
    }
    
    /* Excerpt styling */
    .gpf-document-excerpt {
        width: 100%;
        order: 2;
        margin: 5px 0 12px;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .gpf-search-filter-row {
        padding: 10px;
    }
    
    .gpf-documents-table tr {
        padding: 12px;
    }
    
    .gpf-document-download-button {
        padding: 12px 10px;
    }
}

/* Resource Styles */
.gpf-resources-section {
    margin: 30px 0;
}

/* Resources Table Layout */
.gpf-resources-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.gpf-resources-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
}

.gpf-resources-table th,
.gpf-resources-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.gpf-resources-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.gpf-resources-table tr:hover {
    background-color: #f9f9f9;
}

.gpf-resources-table .gpf-column-name {
    width: 40%;
}

.gpf-resources-table .gpf-column-category {
    width: 25%;
}

.gpf-resources-table .gpf-column-date {
    width: 15%;
}

.gpf-resources-table .gpf-column-link {
    width: 20%;
    text-align: center;
}

.gpf-resource-row .gpf-column-category,
.gpf-resource-row .gpf-column-date,
.gpf-resource-row .gpf-column-link {
    font-size: 14px;
}

/* Resource Categories */
.gpf-resource-categories {
    margin-bottom: 10px;
}

.gpf-resource-category {
    display: inline-block;
    background-color: #f1f1f1;
    color: #555;
    padding: 3px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* Resource Link Button */
.gpf-resource-link-button {
    display: inline-block;
    background-color: #0073aa;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: background-color 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.gpf-resource-link-button:hover {
    background-color: #006291;
    color: #fff !important;
    text-decoration: none;
}

.gpf-no-link {
    color: #999;
    font-style: italic;
}

/* Featured Resources */
.gpf-resource-featured {
    border-left: 3px solid #ffc107;
    background-color: rgba(255, 193, 7, 0.02);
}

/* Mobile responsive styles for resources table */
@media (max-width: 767px) {
    /* Change table display to block */
    .gpf-resources-table {
        display: block;
        border: none;
    }
    
    .gpf-resources-table thead {
        display: none; /* Hide the table headers */
    }
    
    .gpf-resources-table tbody {
        display: block;
        width: 100%;
    }
    
    .gpf-resources-table tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #e5e5e5;
        border-radius: 5px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .gpf-resources-table td {
        display: block;
        width: 100%;
        padding: 5px 0;
        border: none;
        text-align: left;
    }
    
    /* Style resource name */
    .gpf-resources-table .gpf-column-name {
        width: 100%;
        font-size: 16px;
        font-weight: bold;
        order: 1;
        padding-bottom: 10px;
    }
    
    /* Category row */
    .gpf-resources-table .gpf-column-category {
        width: 100%;
        order: 2;
        font-size: 13px;
    }
    
    /* Add labels for mobile view */
    .gpf-resources-table .gpf-column-category:before {
        content: "Category: ";
        font-weight: bold;
    }
    
    /* Date row */
    .gpf-resources-table .gpf-column-date {
        width: 100%;
        order: 3;
        font-size: 13px;
        color: #666;
        padding-top: 5px;
    }
    
    .gpf-resources-table .gpf-column-date:before {
        content: "Added: ";
        font-weight: bold;
    }
    
    /* Link button row */
    .gpf-resources-table .gpf-column-link {
        width: 100%;
        order: 4;
        text-align: left;
        margin-top: 10px;
    }
    
    /* Make the link button more tappable */
    .gpf-resource-link-button {
        display: inline-block;
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        text-align: center;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    .gpf-resources-table tr {
        padding: 12px;
    }
    
    .gpf-resource-link-button {
        padding: 12px 10px;
    }
}

/* Password Change Modal Styles */
.gpf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpf-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
}

.gpf-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.gpf-modal-header h3 {
    margin: 0;
    color: #333;
}

.gpf-modal-body {
    padding: 20px;
}

.gpf-form-field {
    margin-bottom: 20px;
}

.gpf-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.gpf-form-field input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.password-strength-meter {
    height: 4px;
    margin-top: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength-meter.very-weak { background-color: #dc3545; }
.password-strength-meter.weak { background-color: #fd7e14; }
.password-strength-meter.fair { background-color: #ffc107; }
.password-strength-meter.good { background-color: #20c997; }
.password-strength-meter.strong { background-color: #28a745; }

.gpf-form-actions {
    margin-top: 20px;
    text-align: right;
}

.gpf-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.gpf-button-primary {
    background-color: #0073aa;
    color: white;
}

.gpf-button-primary:hover {
    background-color: #006291;
}

.gpf-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.gpf-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gpf-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .gpf-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .gpf-modal-header, .gpf-modal-body {
        padding: 15px;
    }
}