/* Anow HD Radio 2.0 – inner public pages (builder B): programs, program, team, team member / RJ profile, contact,
   CMS pages, 404. Ported from the 1.0 css/single-page.css, css/contact.css, the inline <style> of page.php and 404.php.
   2.0: no backdrop-filter / blur (solid), no glow blobs, reduced motion respected, light variant of the 404 page. */

/* ===================== single-page.css (1.0) ===================== */
/* ============================================
   SINGLE PAGE & LISTING STYLES
   File: css/single-page.css
   Version: 1.0
   Developer: Anow Hosting
   
   NOTE: This is a NEW separate CSS file.
   Does NOT modify any existing CSS file.
   
   Used by: programs.php, program.php, 
   team-listing.php, team-member.php, rj.php
   ============================================ */

/* ============================================
   PAGE CONTAINER
   ============================================ */
.sp-page {
    min-height: 60vh;
    padding-bottom: 0;
}

/* ============================================
   HERO BANNER
   ============================================ */
.sp-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark, #c41e24) 100%);
    padding: 50px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M0 20L20 0h20v20L20 40H0z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.sp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.sp-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.sp-hero h1 i {
    margin-right: 10px;
}

.sp-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.sp-breadcrumb {
    background: var(--bg-card, #333);
    border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    padding: 12px 20px;
}

.sp-breadcrumb-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.sp-breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
    transition: opacity 0.2s;
}

.sp-breadcrumb a:hover {
    opacity: 0.8;
}

.sp-breadcrumb span {
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.6));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.sp-breadcrumb .fa-chevron-right {
    font-size: 8px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.3));
}

/* ============================================
   CONTAINERS
   ============================================ */
.sp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.sp-single-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* ============================================
   GRID LAYOUT
   Desktop: 4 columns | Mobile: 2 columns
   ============================================ */
.sp-grid {
    display: grid;
    gap: 20px;
}

.sp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   CARD STYLES
   ============================================ */
.sp-card {
    background: var(--bg-card, #333);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(var(--primary-red-rgb, 227, 30, 36), 0.3);
}

/* Live Card */
.sp-card-live {
    border-color: rgba(var(--primary-red-rgb, 227, 30, 36), 0.4) !important;
    box-shadow: 0 0 20px rgba(var(--primary-red-rgb, 227, 30, 36), 0.1);
}

/* Card Image */
.sp-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
}

.sp-card-image-square {
    aspect-ratio: 1;
}

.sp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sp-card:hover .sp-card-image img {
    transform: scale(1.08);
}

/* Placeholder */
.sp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    color: rgba(255, 255, 255, 0.15);
    font-size: 50px;
}

/* Time Overlay on Card */
.sp-card-time-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Social Overlay on Card */
.sp-card-social-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sp-card:hover .sp-card-social-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sp-social-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}

/* Card Info */
.sp-card-info {
    padding: 14px;
    flex: 1;
}

.sp-card-info-center {
    text-align: center;
}

.sp-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-card-host {
    font-size: 12px;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.sp-card-host i {
    margin-right: 3px;
}

.sp-card-position {
    font-size: 11px;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sp-card-dept {
    font-size: 11px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.5));
}

.sp-card-desc {
    font-size: 12px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.5));
    line-height: 1.4;
    margin-top: 6px;
}

/* Day Dots */
.sp-card-days {
    display: flex;
    gap: 3px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.sp-day-dot {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
}

.sp-day-dot.active {
    background: rgba(var(--primary-red-rgb, 227, 30, 36), 0.2);
    color: var(--primary-red);
}

/* ============================================
   LIVE BADGE
   ============================================ */
.sp-live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(227, 30, 36, 0.95);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(227, 30, 36, 0.4);
}

.sp-live-badge-large {
    font-size: 12px;
    padding: 6px 14px;
}

.sp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: spLivePulse 1.5s ease-in-out infinite;
}

.sp-live-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: spLivePulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes spLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.sp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.4));
}

.sp-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.3;
}

.sp-empty h3 {
    font-size: 18px;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    margin-bottom: 5px;
}

/* ============================================
   SINGLE DETAIL CARD (Program)
   ============================================ */
.sp-detail-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    background: var(--bg-card, #333);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.sp-detail-image {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
}

.sp-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    color: rgba(255, 255, 255, 0.1);
    font-size: 80px;
}

.sp-detail-content {
    padding: 30px;
}

.sp-detail-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Meta Items */
.sp-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.sp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted, rgba(255, 255, 255, 0.8));
}

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

.sp-meta-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.sp-meta-item a:hover {
    text-decoration: underline;
}

/* Days Schedule in Detail */
.sp-detail-days {
    margin-bottom: 20px;
}

.sp-detail-days h4,
.sp-detail-desc h4,
.sp-profile-bio h4,
.sp-profile-programs h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-detail-days h4 i,
.sp-detail-desc h4 i,
.sp-profile-bio h4 i,
.sp-profile-programs h4 i {
    color: var(--primary-red);
    margin-right: 5px;
}

.sp-days-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sp-day-tag {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-day-tag.active {
    background: rgba(var(--primary-red-rgb, 227, 30, 36), 0.15);
    color: var(--primary-red);
    border-color: rgba(var(--primary-red-rgb, 227, 30, 36), 0.3);
    font-weight: 600;
}

/* Description */
.sp-detail-desc {
    margin-bottom: 20px;
}

.sp-detail-desc p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted-dark, rgba(255, 255, 255, 0.7));
}

/* Host Card */
.sp-host-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-dark, #1a1a1a);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
}

.sp-host-image {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.sp-host-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-host-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 20px;
}

.sp-host-info {
    flex: 1;
}

.sp-host-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.4));
    letter-spacing: 0.5px;
}

.sp-host-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white, #fff);
}

.sp-host-link {
    font-size: 12px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sp-host-link:hover {
    opacity: 0.8;
}

/* Back Button */
.sp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.sp-back-btn:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

/* ============================================
   PROFILE CARD (Team/RJ Single)
   ============================================ */
.sp-profile-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    background: var(--bg-card, #333);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.sp-profile-image-wrap {
    position: relative;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
}

.sp-profile-image {
    width: 100%;
    aspect-ratio: 1;
}

.sp-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-profile-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a3e, #1a1a2e);
    color: rgba(255, 255, 255, 0.1);
    font-size: 80px;
}

/* Profile Social */
.sp-profile-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.sp-profile-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sp-profile-social-icon:hover {
    transform: translateY(-3px);
}

.sp-social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.sp-social-twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.sp-social-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: #dc2743; }
.sp-social-linkedin:hover { background: #0077b5; border-color: #0077b5; }

/* Profile Content */
.sp-profile-content {
    padding: 30px;
}

.sp-profile-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 5px;
}

.sp-profile-position {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sp-profile-dept {
    font-size: 13px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.5));
    margin-bottom: 20px;
}

.sp-profile-dept i {
    color: var(--primary-red);
    margin-right: 5px;
}

.sp-profile-bio {
    margin-bottom: 20px;
}

.sp-profile-bio p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted-dark, rgba(255, 255, 255, 0.7));
}

/* Program Tags */
.sp-profile-programs {
    margin-bottom: 20px;
}

.sp-program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-program-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(var(--primary-red-rgb, 227, 30, 36), 0.1);
    border: 1px solid rgba(var(--primary-red-rgb, 227, 30, 36), 0.2);
    border-radius: 8px;
    color: var(--text-white, #fff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sp-program-tag:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

.sp-program-tag small {
    font-size: 10px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.5));
}

.sp-program-tag:hover small {
    color: rgba(255, 255, 255, 0.8);
}

.sp-tag-live {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 10px rgba(var(--primary-red-rgb, 227, 30, 36), 0.2);
}

/* ============================================
   MORE SECTION
   ============================================ */
.sp-more-section {
    margin-top: 40px;
}

.sp-more-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.sp-more-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* ============================================
   LIGHT THEME SUPPORT
   ============================================ */
[data-theme="light"] .sp-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sp-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .sp-card-title {
    color: #1a1a1a !important;
}

[data-theme="light"] .sp-card-desc,
[data-theme="light"] .sp-card-dept {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .sp-card-placeholder {
    background: linear-gradient(135deg, #e8e8f0, #d8d8e0) !important;
    color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .sp-breadcrumb {
    background: #ffffff !important;
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .sp-breadcrumb span {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .sp-breadcrumb .fa-chevron-right {
    color: rgba(0, 0, 0, 0.2) !important;
}

[data-theme="light"] .sp-detail-card,
[data-theme="light"] .sp-profile-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sp-detail-title,
[data-theme="light"] .sp-profile-name {
    color: #1a1a1a !important;
}

[data-theme="light"] .sp-detail-desc p,
[data-theme="light"] .sp-profile-bio p {
    color: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .sp-meta-item {
    color: #555 !important;
}

[data-theme="light"] .sp-host-card {
    background: #f5f5f5 !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .sp-host-info h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .sp-host-label {
    color: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .sp-day-tag {
    background: rgba(0, 0, 0, 0.04) !important;
    color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .sp-day-tag.active {
    background: rgba(var(--primary-red-rgb, 227, 30, 36), 0.1) !important;
    color: var(--primary-red) !important;
    border-color: rgba(var(--primary-red-rgb, 227, 30, 36), 0.2) !important;
}

[data-theme="light"] .sp-day-dot {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .sp-day-dot.active {
    background: rgba(var(--primary-red-rgb, 227, 30, 36), 0.12) !important;
    color: var(--primary-red) !important;
}

[data-theme="light"] .sp-back-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #555 !important;
}

[data-theme="light"] .sp-back-btn:hover {
    background: var(--primary-red) !important;
    color: #fff !important;
}

[data-theme="light"] .sp-more-title {
    color: #1a1a1a !important;
}

[data-theme="light"] .sp-empty {
    color: rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .sp-empty h3 {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .sp-detail-placeholder,
[data-theme="light"] .sp-profile-placeholder {
    background: linear-gradient(135deg, #e8e8f0, #d8d8e0) !important;
    color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .sp-detail-days h4,
[data-theme="light"] .sp-detail-desc h4,
[data-theme="light"] .sp-profile-bio h4,
[data-theme="light"] .sp-profile-programs h4 {
    color: #555 !important;
}

[data-theme="light"] .sp-profile-dept {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .sp-profile-social {
    background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sp-profile-social-icon {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #555 !important;
}

[data-theme="light"] .sp-program-tag {
    color: #1a1a1a !important;
}

[data-theme="light"] .sp-program-tag small {
    color: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .sp-card-time-overlay {
    color: #fff !important;
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .sp-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sp-detail-card {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .sp-profile-card {
        grid-template-columns: 280px 1fr;
    }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */
@media (max-width: 768px) {
    .sp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sp-detail-card {
        grid-template-columns: 1fr;
    }
    
    .sp-detail-image {
        min-height: 200px;
        max-height: 250px;
    }
    
    .sp-detail-content {
        padding: 20px;
    }
    
    .sp-detail-title {
        font-size: 22px;
    }
    
    .sp-profile-card {
        grid-template-columns: 1fr;
    }
    
    .sp-profile-image {
        max-height: 300px;
    }
    
    .sp-profile-image img {
        max-height: 300px;
    }
    
    .sp-profile-content {
        padding: 20px;
    }
    
    .sp-profile-name {
        font-size: 24px;
    }
    
    .sp-hero {
        padding: 40px 20px 30px;
    }
    
    .sp-hero h1 {
        font-size: 22px;
    }
    
    .sp-container,
    .sp-single-container {
        padding: 20px 15px 40px;
    }
    
    .sp-card-title {
        font-size: 13px;
    }
    
    .sp-card-info {
        padding: 10px;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile
   ============================================ */
@media (max-width: 480px) {
    .sp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sp-card-title {
        font-size: 12px;
    }
    
    .sp-card-host {
        font-size: 11px;
    }
    
    .sp-card-days {
        display: none;
    }
    
    .sp-card-desc {
        display: none;
    }
    
    .sp-hero h1 {
        font-size: 20px;
    }
}
/* ===================== contact.css (1.0) ===================== */
/* ============================================
   CONTACT PAGE STYLES
   File: css/contact.css
   Version: 1.0
   Developer: Anow Hosting
   
   NOTE: This is a NEW separate CSS file.
   Does NOT modify any existing CSS file.
   ============================================ */

/* Contact Page Container */
.contact-page {
    min-height: 60vh;
}

/* ============================================
   CONTACT HERO
   ============================================ */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark, #c41e24) 100%);
    padding: 50px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.contact-hero h1 i {
    margin-right: 8px;
    font-size: 24px;
}

.contact-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* ============================================
   CONTACT CONTAINER
   ============================================ */
.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

/* ============================================
   ALERT MESSAGE
   ============================================ */
.contact-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.contact-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.contact-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.contact-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.contact-alert-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.contact-alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.contact-alert-close:hover {
    opacity: 1;
}

/* ============================================
   CONTACT GRID
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 25px;
    align-items: start;
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-form-card,
.contact-info-card {
    background: var(--bg-card, #333);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.contact-card-header {
    padding: 22px 25px 15px;
    border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.contact-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin-bottom: 4px;
}

.contact-card-header h2 i {
    color: var(--primary-red);
    margin-right: 8px;
    font-size: 16px;
}

.contact-card-header p {
    font-size: 13px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.6));
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, rgba(255, 255, 255, 0.9));
    margin-bottom: 6px;
}

.form-label i {
    color: var(--primary-red);
    margin-right: 5px;
    font-size: 12px;
}

.form-label .required {
    color: var(--primary-red);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark, #1a1a1a);
    border: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-white, #fff);
    font-size: 14px;
    font-family: 'Anek Tamil', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(var(--primary-red-rgb, 227, 30, 36), 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.4));
}

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

.char-count {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.4));
    margin-top: 4px;
}

/* Submit Button */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark, #c41e24) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Anek Tamil', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-red-rgb, 227, 30, 36), 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   CONTACT INFO SIDEBAR
   ============================================ */
.contact-info-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: var(--bg-dark, #1a1a1a);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

a.contact-info-item:hover {
    border-color: var(--primary-red);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.contact-info-icon.toll-free { background: linear-gradient(135deg, #667eea, #764ba2); }
.contact-info-icon.phone { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.contact-info-icon.email { background: linear-gradient(135deg, #fa709a, #fee140); }
.contact-info-icon.address { background: linear-gradient(135deg, #4facfe, #00f2fe); }

.contact-info-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white, #fff);
    margin-bottom: 2px;
}

.contact-info-text p {
    font-size: 13px;
    color: var(--text-muted-darker, rgba(255, 255, 255, 0.6));
    line-height: 1.4;
    word-break: break-word;
}

/* ============================================
   CONTACT SOCIAL
   ============================================ */
.contact-social {
    padding: 15px 20px 20px;
    border-top: 1px solid var(--border-light, rgba(255, 255, 255, 0.1));
}

.contact-social h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, rgba(255, 255, 255, 0.9));
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RADIO WAVE ANIMATION
   ============================================ */
.contact-radio-wave {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin: 10px 20px 20px;
}

.wave-tower {
    font-size: 28px;
    color: var(--primary-red);
    z-index: 2;
    position: relative;
}

.wave-circle {
    position: absolute;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    animation: waveExpand 3s ease-out infinite;
}

.wave-circle:nth-child(1) {
    width: 40px;
    height: 40px;
    animation-delay: 0s;
}

.wave-circle:nth-child(2) {
    width: 70px;
    height: 70px;
    animation-delay: 1s;
}

.wave-circle:nth-child(3) {
    width: 100px;
    height: 100px;
    animation-delay: 2s;
}

@keyframes waveExpand {
    0% {
        opacity: 0.6;
        transform: scale(0.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] .contact-form-card,
[data-theme="light"] .contact-info-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .contact-card-header {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .contact-card-header h2 {
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-card-header p {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .form-label {
    color: #333 !important;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: #f5f5f5 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    background: #fff !important;
    border-color: var(--primary-red) !important;
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.35) !important;
}

[data-theme="light"] .contact-info-item {
    background: #f5f5f5 !important;
}

[data-theme="light"] .contact-info-text h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .contact-info-text p {
    color: rgba(0, 0, 0, 0.6) !important;
}

[data-theme="light"] .contact-social {
    border-top-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .contact-social h4 {
    color: #333 !important;
}

[data-theme="light"] .char-count {
    color: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .contact-alert-success {
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

[data-theme="light"] .contact-alert-error {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero {
        padding: 40px 20px 30px;
    }
    
    .contact-hero h1 {
        font-size: 22px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-info-list {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 20px 15px 40px;
    }
    
    .contact-hero h1 {
        font-size: 20px;
    }
    
    .contact-hero p {
        font-size: 13px;
    }
    
    .contact-card-header {
        padding: 18px 18px 12px;
    }
    
    .contact-form {
        padding: 18px;
    }

    .contact-info-item {
        padding: 12px;
    }
}
/* ===================== page.php (1.0 inline style) ===================== */
.dynamic-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    min-height: 60vh;
    background: var(--bg-dark, #1a1a1a);
    color: var(--text-white, #ffffff);
}

.page-header-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.page-main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white, #ffffff);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-last-updated {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

.page-content-section {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.page-content-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white, #fff);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-content-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-white, #fff);
    margin: 25px 0 12px;
}

.page-content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white, #fff);
    margin: 20px 0 10px;
}

.page-content-section h4,
.page-content-section h5,
.page-content-section h6 {
    font-weight: 600;
    color: var(--text-white, #fff);
    margin: 18px 0 8px;
}

.page-content-section p {
    margin-bottom: 15px;
    color: rgba(255,255,255,0.85);
}

.page-content-section a {
    color: var(--primary-red, #e31e24);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.page-content-section a:hover {
    opacity: 0.8;
}

.page-content-section ul,
.page-content-section ol {
    margin: 15px 0;
    padding-left: 30px;
}

.page-content-section li {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.85);
}

.page-content-section strong,
.page-content-section b {
    color: var(--text-white, #fff);
    font-weight: 600;
}

.page-content-section blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid var(--primary-red, #e31e24);
    background: rgba(255,255,255,0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255,255,255,0.7);
}

.page-content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-content-section table th,
.page-content-section table td {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.15);
    text-align: left;
}

.page-content-section table th {
    background: rgba(255,255,255,0.1);
    font-weight: 600;
    color: var(--text-white, #fff);
}

.page-content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.page-content-section hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 25px 0;
}

@media screen and (max-width: 768px) {
    .dynamic-page-container {
        padding: 25px 15px 40px;
    }
    .page-main-title {
        font-size: 26px;
    }
    .page-content-section {
        font-size: 14px;
    }
    .page-content-section h1 { font-size: 24px; }
    .page-content-section h2 { font-size: 20px; }
    .page-content-section h3 { font-size: 18px; }
}

@media screen and (max-width: 480px) {
    .dynamic-page-container {
        padding: 20px 12px 30px;
    }
    .page-main-title {
        font-size: 22px;
    }
    .page-content-section {
        font-size: 13px;
        line-height: 1.7;
    }
}

/* ===================== 404.php "Signal Lost!" (1.0 inline style) ===================== */
/* colours from Admin › Color Scheme (Theme::css variables); 1.0 printed them into a <style> block per request */
.error-page {
    --e404-primary: var(--primary-red, #851010);
    --e404-primary-rgb: var(--primary-red-rgb, 133, 16, 16);
    --e404-bg: var(--bg-darker, #0d0d0d);
    --e404-card: var(--bg-card, #1a1a1a);
    --e404-text: #ffffff;
    --e404-muted: rgba(255,255,255,0.45);
    --e404-soft: rgba(255,255,255,0.8);
    --e404-line: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
    background: var(--e404-bg);
}
[data-theme="light"] .error-page {
    --e404-bg: #f4f4f5;
    --e404-card: #ffffff;
    --e404-text: #151517;
    --e404-muted: #5f5f66;
    --e404-soft: #3d3d44;
    --e404-line: rgba(0,0,0,0.1);
}
.e404-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.e404-particle { position: absolute; background: rgba(var(--e404-primary-rgb), 0.25); border-radius: 50%; animation: e404Float linear infinite; }
.e404-particle:nth-child(1)  { left: 8%;  width: 3px; height: 3px; animation-duration: 12s; animation-delay: 0s; }
.e404-particle:nth-child(2)  { left: 18%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 1s; }
.e404-particle:nth-child(3)  { left: 28%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 2s; }
.e404-particle:nth-child(4)  { left: 38%; width: 4px; height: 4px; animation-duration: 14s; animation-delay: 0.5s; }
.e404-particle:nth-child(5)  { left: 50%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 1.5s; }
.e404-particle:nth-child(6)  { left: 62%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 3s; }
.e404-particle:nth-child(7)  { left: 72%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 2.5s; }
.e404-particle:nth-child(8)  { left: 82%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 0.8s; }
.e404-particle:nth-child(9)  { left: 92%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 1.2s; }
.e404-particle:nth-child(10) { left: 45%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 3.5s; }
@keyframes e404Float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}
.error-content { text-align: center; position: relative; z-index: 2; max-width: 500px; width: 100%; }
.e404-icon { margin-bottom: 15px; }
.e404-signal {
    width: 80px; height: 80px; margin: 0 auto; background: var(--e404-card); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(var(--e404-primary-rgb), 0.2);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: e404IconFloat 3s ease-in-out infinite; position: relative;
}
.e404-signal::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px solid rgba(var(--e404-primary-rgb), 0.1); animation: e404Ring 3s ease-in-out infinite;
}
.e404-signal i { font-size: 30px; color: var(--e404-primary); animation: e404Pulse 2s ease-in-out infinite; }
@keyframes e404IconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes e404Ring { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.12); opacity: 0.15; } }
@keyframes e404Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.e404-number {
    font-size: clamp(100px, 25vw, 180px); font-weight: 900; line-height: 1; margin-bottom: 10px; position: relative;
    color: transparent;
    background: linear-gradient(135deg, var(--e404-primary) 0%, rgba(var(--e404-primary-rgb), 0.5) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -5px;
}
.e404-number::before, .e404-number::after {
    content: attr(data-code); position: absolute; top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, var(--e404-primary) 0%, rgba(var(--e404-primary-rgb), 0.5) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.e404-number::before { animation: e404Glitch1 2.5s ease-in-out infinite; clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%); }
.e404-number::after { animation: e404Glitch2 2.5s ease-in-out infinite; clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%); }
@keyframes e404Glitch1 { 0%, 100% { transform: translate(0); } 20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, -2px); } 80% { transform: translate(2px, 1px); } }
@keyframes e404Glitch2 { 0%, 100% { transform: translate(0); } 20% { transform: translate(3px, -2px); } 40% { transform: translate(-3px, 1px); } 60% { transform: translate(2px, 2px); } 80% { transform: translate(-2px, -1px); } }
.e404-title { font-size: clamp(20px, 5vw, 28px); font-weight: 700; color: var(--e404-text); margin: 0 0 12px 0; letter-spacing: 0.5px; }
.e404-subtitle { font-size: clamp(13px, 3.5vw, 15px); color: var(--e404-muted); line-height: 1.8; margin: 0 0 30px 0; padding: 0 10px; }
.e404-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 35px; padding: 0 10px; }
.e404-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s ease; border: none; text-decoration: none; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.e404-btn-primary { background: linear-gradient(135deg, var(--e404-primary), var(--primary-red-dark, #5e0b0b)); color: var(--on-primary, #ffffff); box-shadow: 0 5px 20px rgba(var(--e404-primary-rgb), 0.35); }
.e404-btn-primary:hover { transform: translateY(-3px); color: var(--on-primary, #ffffff); }
.e404-btn-secondary { background: var(--e404-card); color: var(--e404-soft); border: 1px solid var(--e404-line); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.e404-btn-secondary:hover { transform: translateY(-3px); border-color: rgba(var(--e404-primary-rgb), 0.3); color: var(--e404-text); }
.e404-links { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; padding: 0 10px; }
.e404-link {
    display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--e404-muted); font-size: 11px; font-weight: 500;
    text-decoration: none; transition: all 0.3s ease; padding: 12px 15px; border-radius: 14px; min-width: 72px;
}
.e404-link:hover { color: var(--e404-primary); background: rgba(var(--e404-primary-rgb), 0.05); }
.e404-link-icon {
    width: 48px; height: 48px; border-radius: 14px; background: var(--e404-card); display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--e404-muted); border: 1px solid var(--e404-line); transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.e404-link:hover .e404-link-icon { color: var(--e404-primary); border-color: rgba(var(--e404-primary-rgb), 0.25); transform: translateY(-4px); }
@media (min-width: 768px) {
    .error-page { min-height: 65vh; padding: 60px 30px; }
    .e404-signal { width: 90px; height: 90px; }
    .e404-signal i { font-size: 35px; }
    .e404-links { gap: 20px; }
    .e404-link-icon { width: 52px; height: 52px; font-size: 20px; }
}
@media (max-width: 480px) {
    .error-page { min-height: 60vh; padding: 30px 15px; }
    .e404-number { letter-spacing: -3px; }
    .e404-signal { width: 65px; height: 65px; }
    .e404-signal i { font-size: 24px; }
    .e404-actions { flex-direction: column; gap: 10px; }
    .e404-btn { width: 100%; max-width: 260px; justify-content: center; padding: 12px 24px; font-size: 13px; }
    .e404-links { gap: 8px; }
    .e404-link { padding: 10px 10px; font-size: 10px; min-width: 60px; }
    .e404-link-icon { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
}
@media (max-width: 360px) {
    .e404-number { letter-spacing: -2px; }
    .e404-signal { width: 55px; height: 55px; }
    .e404-signal i { font-size: 20px; }
    .e404-link { min-width: 52px; padding: 8px 6px; }
    .e404-link-icon { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
}

/* ===================== 2.0 additions ===================== */
/* contact form: hidden honeypot (1.0 inline style), visually hidden labels helper, field errors */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.contact-field-error { display: block; margin-top: 6px; font-size: 12px; color: #e31e24; }
[data-theme="light"] .contact-field-error { color: #b3121b; }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: #e31e24 !important; }
.char-count.is-near { color: #e31e24; }
/* images keep their box (width/height attributes now set) */
.sp-card-image img, .sp-detail-image img, .sp-host-image img, .sp-profile-image img { height: 100%; }
@media (prefers-reduced-motion: reduce) {
    .e404-particle, .e404-signal, .e404-signal::after, .e404-signal i, .e404-number::before, .e404-number::after,
    .wave-circle, .sp-live-dot, .sp-live-dot-sm { animation: none !important; }
}
.contact-alert[hidden] { display: none !important; }

/* Dark theme: the primary colour used as text is the AA-readable variant (--primary-text, computed from the admin's
   colours in App\Support\Theme) – 1.0 put the dark red straight on the dark cards (contrast 1.7). */
html:not([data-theme="light"]) .sp-card-host,
html:not([data-theme="light"]) .sp-card-position,
html:not([data-theme="light"]) .sp-profile-position,
html:not([data-theme="light"]) .sp-host-link,
html:not([data-theme="light"]) .sp-breadcrumb a,
html:not([data-theme="light"]) .sp-meta-item a,
html:not([data-theme="light"]) .sp-day-dot.active,
html:not([data-theme="light"]) .sp-day-tag.active,
html:not([data-theme="light"]) .contact-form .required { color: var(--primary-text, var(--primary-red)); }
html:not([data-theme="light"]) .sp-day-dot { color: rgba(255, 255, 255, 0.55); }
html:not([data-theme="light"]) .sp-day-tag { color: rgba(255, 255, 255, 0.6); }
html:not([data-theme="light"]) .page-last-updated { color: rgba(255, 255, 255, 0.6); }

/* Light theme: the 1.0 grey texts (black at 30–50 %) read at AA (4.5:1) on the white cards. */
[data-theme="light"] .sp-card-desc, [data-theme="light"] .sp-card-dept, [data-theme="light"] .sp-day-dot, [data-theme="light"] .sp-day-tag,
[data-theme="light"] .sp-host-label, [data-theme="light"] .char-count, [data-theme="light"] .contact-card-header p,
[data-theme="light"] .sp-breadcrumb span, [data-theme="light"] .page-last-updated { color: rgba(0, 0, 0, 0.62) !important; }
[data-theme="light"] .sp-day-dot.active, [data-theme="light"] .sp-day-tag.active { color: var(--primary-red) !important; }
[data-theme="light"] .sp-profile-dept { color: rgba(0, 0, 0, 0.62) !important; }
