/* Cyber Events Plugin Styles - Modern 2025 Version */

:root {
    --primary: #00A896;
    --primary-dark: #028090;
    --primary-light: #5EEAD4;
    --secondary: #FFC857;
    --secondary-dark: #E6B54A;
    --dark: #102A43;
    --light: #F0F4F8;
    --gray-100: #E6E6E6;
    --gray-200: #CCCCCC;
    --gray-300: #B3B3B3;
    --gray-400: #8C8C8C;
    --gray-500: #737373;
    --gray-600: #595959;
    --transition: all 0.3s ease;
    --recur-color: #8e44ad;
}

/* Form Styles */
.cyber-events-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cyber-events-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    color: var(--dark);
    font-size: 16px;
}

.form-field input[type="text"],
.form-field input[type="datetime-local"],
.form-field textarea,
.form-field select {
    padding: 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--light);
}

.form-field input[type="text"]:focus,
.form-field input[type="datetime-local"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.2);
    outline: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 150, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    box-shadow: 0 10px 20px rgba(255, 200, 87, 0.2);
}

.cyber-events-errors {
    background-color: #FEE2E2;
    color: #B91C1C;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 4px solid #B91C1C;
    font-size: 16px;
}

.cyber-events-errors ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

/* Single Event Display Styles */
.cyber-event-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 30px;
}

.event-header {
    text-align: center;
    margin-bottom: 40px;
}

.event-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.event-meta-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.event-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .event-details {
        grid-template-columns: 1fr 1fr;
    }
    
    .event-description {
        grid-column: 1 / -1;
    }
}

.event-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-flyer img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.event-image-container:hover img {
    transform: scale(1.03);
}

.event-info {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.event-info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.event-info-icon {
    font-size: 24px;
    color: var(--primary);
    width: 24px;
    text-align: center;
}

.event-info-content {
    flex: 1;
}

.event-info-label {
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 5px;
    font-size: 14px;
}

.event-info-value {
    font-size: 18px;
    color: var(--dark);
    font-weight: 500;
}

.event-description {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.event-description h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.event-description p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.event-cta {
    margin-top: 40px;
    text-align: center;
}

.event-share {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    transition: var(--transition);
}

.share-button:hover {
    transform: translateY(-5px);
}

.share-facebook {
    background-color: #1877F2;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-email {
    background-color: #D44638;
}

.cyber-events-list-modal .events-grid-row .event-title {
font-size: 18px !important;
}

/* Event List Styles - Using the Today's Events style framework */
.cyber-events-section {
    padding: 60px 0;
    background-color: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.6;
}

.category-filter {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 18px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.program-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}


.program-image {
            position: relative;
            width: 400px; /* Width for landscape orientation - wider than height */
            min-width: 400px; /* Ensures it doesn't shrink */
            height: auto; /* Height for 11x8.5 letter paper landscape ratio (8.5/11 × 400 = ~309px, minus padding) */
            overflow: hidden;
            background-color: white; /* Clean white background */
            display: flex;
            align-items: center;
            justify-content: center;
            border-right: 1px solid rgba(0, 0, 0, 0.03); /* Border on the right instead of bottom */
            padding-top: 30px; /* Top padding for date tab */
        }
        

        
        .program-image img {
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
         
        
      
        
/* Date Tab (Left Side) */

.event-date-tab i {
    margin-right: 8px;
    font-size: 16px;
    color: white;
}
        .event-date-tab {
            position: relative;
            background-color: #1abaa7; /* Red background for date */
            color: white;
            font-size: 20px;
            font-weight: 700;
            padding: 8px 16px;
            border-bottom-right-radius: 12px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            display: flex;
            align-items: center;
            max-width: 50%;
        }
        
        /* Recurring event styling */
        .event-date-tab.recurring-event {
            background-color: var(--recur-color);
            background: linear-gradient(135deg, var(--recur-color) 0%, #763b96 100%);
        }
        
        .recurring-indicator {
            margin-left: 10px;
            font-size: 0.8rem;
            background-color: rgba(255, 255, 255, 0.2);
            padding: 3px 8px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            white-space: nowrap;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .recurring-indicator i {
            margin-right: 5px;
            font-size: 0.8rem;
            animation: spin 4s linear infinite;
            color: rgba(255, 255, 255, 0.9);
            flex-shrink: 0;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Pulse animation for recurring events indicator */
        .event-date-tab.recurring-event::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: inherit;
            animation: pulse 2s ease-in-out infinite;
            z-index: -1;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.05); opacity: 0.5; }
            100% { transform: scale(1); opacity: 0.3; }
        }
        
        .event-date-tab i {
            margin-right: 8px;
            font-size: 16px;
        }
        
        .event-date-year {
            font-size: 14px;
            opacity: 0.9;
            margin-left: 4px;
        }
        
        /* Recurring event note in event details */
        .event-recur-info {
            background-color: rgba(142, 68, 173, 0.1);
            border-radius: 8px;
            padding: 10px 15px;
            position: relative;
            overflow: hidden;
        }
        
        .event-recur-info::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 30px;
            background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(142, 68, 173, 0.1) 100%);
            z-index: 1;
        }
        
        .event-recur-freq {
            font-weight: 600;
            color: var(--recur-color);
        }
        
        .event-recurring-note {
            background-color: rgba(142, 68, 173, 0.05);
            border-radius: 8px;
            padding: 12px 15px;
            border-left: 3px solid var(--recur-color);
            margin-top: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
        }
           .program-content {
            padding: 0 20px 10px; /* Further reduced padding for more compact layout */
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            position: relative;
            z-index: 1;
            width: calc(100% - 400px); /* Adjusted for the image width of 400px */
            background-color: white;
        }
.event-time-tab {
            display: inline-flex;
            align-items: center;
            padding: 5px 5px; /* Increased padding for better visibility */
            font-size: 18px; /* Increased font size for seniors */
            font-weight: 700;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            background-color: #1abaa7; /* Blue background for time */
            color: white;
            border-radius: 0px; /* Slightly smaller radius */
            margin: 0px 0 0px 0px; position: relative; top: 26px; /* Further reduced bottom margin */
            z-index: 10;
            
            position: static;
            width: auto; /* Only as wide as needed */
            max-width: max-content; /* Ensures it only takes the width of its content */
        }
        
        .event-time-tab i {
            margin-right: 8px;
            font-size: 22px; /* Increased icon size to match larger text */
        }




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

.placeholder-image, .pdf-placeholder, .file-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.placeholder-image i, .pdf-placeholder i, .file-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.pdf-placeholder {
    background-color: #fee2e2;
    color: #ef4444;
}

.file-placeholder {
    background-color: #e0f2fe;
    color: #0ea5e9;
}

.program-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
}


/* Cyber Events specific title styling to override theme page title styles */
.cyber-event-title,
.cyber-events-section .cyber-event-title,
.program-grid .cyber-event-title,
.cyber-events-section .program-card .program-title,
.cyber-events-section .program-title,
.program-grid .program-card .program-title,
.program-grid .program-title,
.program-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--dark) !important;
    line-height: 1.3 !important;
    font-family: inherit !important; /* Prevent theme font override */
    text-decoration: none !important; /* Remove any underlines */
    border: none !important; /* Remove theme borders */
    text-transform: none !important; /* Remove any text transform */
    letter-spacing: normal !important; /* Reset letter spacing */
    text-shadow: none !important; /* Remove any text shadows */
    background: transparent !important; /* Remove background */
    padding: 0 !important; /* Remove padding */
    
    width: auto !important; /* Reset width */
    height: auto !important; /* Reset height */
}

.program-description {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.program-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    align-self: flex-start;
    margin-top: auto;
    min-width: 144px; /* Keep a consistent width */
    text-align: center;
}
.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-top:30px;
}





.program-link:visited {
    color: var(--primary); /* Ensures visited links look the same as unvisited */
}

.program-link:hover, .program-link:visited:hover {
    color: var(--primary-dark);
}

.program-link:active {
    transform: translateY(2px);
}

.events-empty {
    background-color: white;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 64px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.events-empty h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.events-empty p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .program-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}
     /* Event Tabs Container */
        .event-tabs-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 15; /* Increased to be above the event-card-link */
            display: flex;
            justify-content: space-between;
            width: 100%;
          
        }
@media (max-width: 768px) {
    .section-title, .event-title {
        font-size: 30px;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .program-content {
        padding: 20px;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .event-info {
        padding: 20px;
    }
    
    .event-description {
        padding: 20px;
    }
}