/**
 * Page Templates Styles
 * 
 * Styling for all page templates (Contact, Events, Team, etc.)
 * Matches single-members.php styling approach with:
 * - Customizer variables for colors and fonts
 * - Modern hero sections with gradients
 * - Card-based layouts
 * - Responsive design
 * 
 * @package WEEU830
 * @version 2.0.0
 */

/* ==========================================================================
   CONTACT PAGE TEMPLATE
   ========================================================================== */

.page-contact {
    background: var(--color-background-alt);
}

/* Hero Section: page-contact.php now uses weeu830_render_page_hero()
   (class hero-context-contact) — the old .contact-hero rules were removed. */

/* Contact Methods Grid */
.contact-methods-grid {
    display: grid;
    /* auto-fit: any number of cards (the card builder allows up to 12)
       flows into as many columns as fit, centered rows on the last line */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-method-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.method-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-h3);
    color: var(--color-on-primary);
}

/* Size set per page in the Contact Page box (Contact Method Cards). */
.contact-method-card h3 {
    font-family: var(--font-heading);
    font-size: var(--contact-card-title-size, 26px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 15px 0;
}

.method-detail {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 10px 0;
}

.method-detail a {
    color: inherit;
    text-decoration: none;
}

.method-detail a:hover {
    text-decoration: underline;
}

.method-description {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

/* Stacked module sections (order set by the Contact Page Modules box) */
.page-contact .contact-section {
    margin-bottom: 40px;
}

/* Main Content Grid */
.contact-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}


/* Content Cards */
.content-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.content-card:last-child {
    margin-bottom: 0;
}

.content-card h2,
.content-card h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    margin: 0 0 20px 0;
    font-weight: 700;
}

.content-card h2 {
    font-size: var(--font-size-display-sm);
}

.content-card h3 {
    font-size: var(--font-size-xl);
}

.content-card p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text);
}

/* Contact Form */
.form-intro {
    margin-bottom: 30px;
    color: var(--color-text-muted);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-heading);
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-primary);
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* The contact form's Department choice, drawn like its text fields. */
.contact-form .form-group select {
    font-family: var(--font-primary);
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: var(--font-size-sm);
    background-color: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.contact-form .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* The contact form's Send Message button sits centred under the form. */
.contact-form .form-actions {
    text-align: center;
}

.btn-submit {
    font-family: var(--font-primary);
    background: var(--gradient-primary);
    color: var(--color-on-primary);
    border: none;
    padding: 14px 32px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-family: var(--font-primary);
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--color-background-alt);
    border-radius: 12px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 600;
}

.social-link:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateX(5px);
}

.social-link i {
    font-size: var(--font-size-xl);
    width: 24px;
    text-align: center;
}

/* Station Info */
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-family: var(--font-primary);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-background-alt);
}

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

.info-item i {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    width: 24px;
}

/* Map Section */
.map-section {
    margin-top: 60px;
}

.map-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   EVENTS PAGE TEMPLATE
   ========================================================================== */

.page-events {
    background: var(--color-background-alt);
}

/* Events hero now renders via the unified page hero (inc/page-hero.php). */

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Events Filters */
.events-filters {
    margin-bottom: 50px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.25);
}

.filter-tab i {
    font-size: var(--font-size-base);
}

/* Event Status Badge (in image) */
.event-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-status-badge.today {
    background: var(--color-success);
    color: var(--color-text-on-dark);
    animation: pulse 2s infinite;
}

.event-status-badge.past {
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

/* Event Card */
.event-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Event Image */
.event-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: var(--color-background-alt);
}

.event-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.event-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Event Content */
.event-content {
    position: relative;
    padding: 18px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

/* Date Column */
.event-date-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Date Badge */
.event-date-badge {
    width: 60px;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.badge-month {
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: 5px;
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.badge-day {
    padding: 8px 5px;
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    font-weight: 700;
    color: var(--color-heading);
}

/* Event Time Under Badge */
.event-time {
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.event-time i {
    font-size: var(--font-size-xs);
}

/* Event Details */
.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.event-title a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Event Location */
.event-location {
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.event-location i {
    color: var(--color-primary);
    font-size: var(--font-size-xs);
}

/* Legacy Meta Classes (for backward compatibility) */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.meta-item i {
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    width: 14px;
}

/* Event Link */
.event-link {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.event-link:hover {
    gap: 12px;
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-surface);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.no-events-message i {
    font-size: var(--font-size-display-lg);
    color: var(--color-primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-events-message h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 15px 0;
}

.no-events-message p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    margin: 0;
}

/* Pagination */
.events-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.events-pagination a,
.events-pagination span {
    font-family: var(--font-primary);
    padding: 10px 16px;
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.events-pagination a:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.3);
}

.events-pagination .current {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

/* ==========================================================================
   TEAM PAGE TEMPLATE
   ========================================================================== */

.page-team {
    background: var(--color-background-alt);
}

/* Team Hero: removed — the team page and single-teams heroes now render
   through weeu830_render_page_hero() (.weeu-page-hero provides the wrapper,
   background, and title styles). */

/* Team Section */
.team-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-display-sm);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-primary);
}

/* Members Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Member Card */
.member-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Member Photo */
.member-photo {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--color-background-alt);
}

.member-photo a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-border) 0%, var(--color-background-alt) 100%);
    color: var(--color-text-subtle);
    font-size: var(--font-size-display-lg);
}

/* Social Overlay */
.social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px 15px 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover .social-overlay {
    opacity: 1;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-on-dark);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* Member Info */
.member-info {
    padding: 25px 20px;
}

.member-name {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.member-name a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.3s ease;
}

.member-name a:hover {
    color: var(--color-primary);
}

.member-position {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 600;
    margin: 0 0 12px 0;
}

/* Member Shows */
.member-shows {
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.member-shows i {
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Member Contact */
.member-contact {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item {
    width: 32px;
    height: 32px;
    background: var(--color-background-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-xs);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: scale(1.1);
}

/* View Profile Button */
.view-profile-btn {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.view-profile-btn:hover {
    gap: 12px;
}

/* No Members Message */
.no-members-message {
    text-align: center;
    padding: 80px 20px;
    background: var(--color-surface);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.no-members-message i {
    font-size: var(--font-size-display-lg);
    color: var(--color-primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-members-message h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 15px 0;
}

.no-members-message p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
}

/* ==========================================================================
   SINGLE EVENT TEMPLATE
   ========================================================================== */

.single-event {
    background: var(--color-background-alt);
}

/* Event Hero: wrapper/background/title rules removed — the hero renders
   through weeu830_render_page_hero() with class .event-hero; only the badge
   and quick-info content styles remain, plus the spacing hooks below. */
.weeu-page-hero.event-hero .status-badge {
    margin-bottom: 18px;
}

.weeu-page-hero.event-hero .event-quick-info {
    margin-top: 26px;
}

/* Status Badge */
.event-status-badge {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.today {
    background: var(--color-success);
    color: var(--color-text-on-dark);
    animation: pulse 2s infinite;
}

.status-badge.upcoming {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-on-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-badge.past {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Info */
.event-quick-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-on-primary);
}

.quick-info-item.price {
    background: rgba(255, 255, 255, 0.25);
}

.quick-info-item i {
    font-size: var(--font-size-base);
}

/* Event Content Section */
.event-content-section {
    padding: 0 0 80px 0;
}

.event-main-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* Featured Image */
.event-featured-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Event Description */
.event-description h2 {
    margin-top: 0;
}

/* Force single column layout - override all column styling */
.event-description .event-content,
.event-content,
.single-event .event-content {
    /* Disable CSS columns */
    column-count: 1 !important;
    columns: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
    
    /* Ensure block display */
    display: block !important;
    
    /* Reset any flex/grid that might cause columns */
    flex-direction: column !important;
}

.event-content p {
    margin-bottom: 20px;
    /* Ensure paragraphs don't break into columns */
    break-inside: avoid;
    page-break-inside: avoid;
    column-span: all;
    display: block !important;
    width: 100% !important;
}

/* Override WordPress Gutenberg column blocks in events */
.event-content .wp-block-columns {
    display: block !important;
    flex-wrap: wrap !important;
}

.event-content .wp-block-column {
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Event Info Card */
.event-info-card .info-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-background-alt);
}

/* Event Personalities Section */
.event-personalities {
    margin-bottom: 40px;
}

.event-personalities h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 30px;
}

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

.personality-card {
    background: var(--color-surface);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.personality-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.personality-photo {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: var(--color-background-alt);
}

.personality-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.personality-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-border) 0%, var(--color-background-alt) 100%);
    color: var(--color-text-subtle);
    font-size: 80px;
}

/* Scoped to the .personality-link layout (single-events.php), where the
   heading sits directly in the card and this margin is the card's padding.
   page-team.php's card is a different layout with the same class name: its
   heading lives in a padded .personality-info, so an unscoped rule here
   indented the name away from the position and bio beneath it. */
.personality-card .personality-link h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-heading);
    margin: 20px 20px 8px 20px;
    transition: color 0.3s ease;
}

.personality-card:hover .personality-link h3 {
    color: var(--color-primary);
}

.personality-position {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0 20px 20px 20px;
    font-weight: 500;
}

/* Event Info Card */
.event-info-card .info-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-background-alt);
}

.event-info-card .info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event-info-card .info-section:first-child {
    padding-top: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.info-label i {
    font-size: var(--font-size-base);
}

.info-value {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-text);
}

.info-value strong {
    color: var(--color-heading);
    font-weight: 700;
}

.info-value a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.info-value a:hover {
    opacity: 0.7;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--color-background-alt);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.directions-link:hover {
    background: var(--color-primary);
    color: var(--color-on-primary) !important;
    transform: translateX(5px);
}

/* Tickets Button */
.btn-tickets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--gradient-primary);
    color: var(--color-on-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-tickets:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
}

/* Share Card */
.share-card .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-background-alt);
    border-radius: 12px;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.share-button i {
    font-size: var(--font-size-lg);
    width: 24px;
    text-align: center;
}

.share-button.facebook[data-social="facebook"]:hover {
    background: #1877F2;
    color: var(--color-text-on-dark);
}

.share-button.twitter[data-social="twitter"]:hover {
    background: #000000;
    color: var(--color-text-on-dark);
}

.share-button.email:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

/* More Events Section */
.more-events-section {
    background: var(--color-background-alt);
    padding: 80px 0;
}

.more-events-section h2 {
    font-family: var(--font-heading);
    font-size: var(--font-size-display-sm);
    font-weight: 700;
    color: var(--color-heading);
    text-align: center;
    margin: 0 0 50px 0;
}

.view-all-events {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--color-on-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 700;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.3);
}

/* Back Button */
.back-section {
    padding: 50px 0;
    text-align: center;
    background: var(--color-background-alt);
}

.back-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 38px;
    background: var(--color-surface);
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: var(--font-size-base);
    border: 3px solid var(--color-primary);
    border-radius: 50px;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.button-icon {
    font-size: var(--font-size-lg);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: 1;
}

.back-button:hover {
    color: var(--color-on-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--color-primary-rgb), 0.25);
}

.back-button:hover .button-bg {
    left: 0;
}

.back-button:hover .button-icon {
    transform: translateX(-5px);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 35px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        justify-content: center;
        width: 100%;
    }
    
    .event-content {
        flex-direction: column;
        align-items: center;
    }
    
    .event-date-column {
        margin-bottom: 15px;
    }
    
    .event-details {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .team-section {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: var(--font-size-h3);
        margin-bottom: 20px;
    }
    
    /* Single Event Responsive */
    .event-main-grid {
        grid-template-columns: 1fr;
    }
    
    .event-quick-info {
        gap: 12px;
    }
    
    .personalities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 25px;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-h4);
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .member-info {
        padding: 20px 15px;
    }
    
    /* Single Event Responsive */
    .quick-info-item {
        font-size: var(--font-size-xs);
        padding: 10px 16px;
    }
    
    .personalities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .personality-card .personality-link h3 {
        font-size: var(--font-size-lg);
        margin: 15px 15px 6px 15px;
    }
    
    .personality-position {
        margin: 0 15px 15px 15px;
        font-size: var(--font-size-xs);
    }
}
