/**
 * T4TEQ Software Solutions - Workshops Theme Stylesheet
 * Brand Colors:
 * - Primary Navy: #1e1b4b
 * - Brand Orange: #f97316
 * - Accent Purple: #4f46e5
 * - Charcoal: #1e293b
 * - Success Emerald: #10b981
 */

:root {
    --t4t-navy: #1e1b4b;
    --t4t-navy-dark: #0f172a;
    --t4t-orange: #f97316;
    --t4t-orange-hover: #ea580c;
    --t4t-purple: #4f46e5;
    --t4t-charcoal: #1e293b;
    --t4t-emerald: #10b981;
    --t4t-gray-bg: #f8fafc;
    --t4t-border: #e2e8f0;
    --t4t-radius: 18px;
    --t4t-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --t4t-shadow-hover: 0 20px 30px -10px rgba(30, 27, 75, 0.16);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--t4t-gray-bg);
    color: var(--t4t-charcoal);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Announcement Top Bar */
.top-announcement-bar {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* Header & Nav */
.main-site-header {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
}

.t4t-logo-img {
    height: 48px;
    max-width: 200px;
    object-fit: contain;
}

.nav-custom-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--t4t-charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
}

.nav-custom-link:hover, .nav-custom-link.active {
    color: var(--t4t-orange);
}

.nav-custom-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--t4t-orange);
    border-radius: 2px;
}

/* Hero Section */
.workshops-hero-section {
    background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
                #ffffff;
    border-bottom: 1px solid var(--t4t-border);
    position: relative;
    padding: 3.5rem 0 3rem;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--t4t-orange);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Workshop Cards Grid */
.workshop-card {
    background: #ffffff;
    border: 1px solid var(--t4t-border);
    border-radius: var(--t4t-radius);
    box-shadow: var(--t4t-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.workshop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--t4t-shadow-hover);
    border-color: #cbd5e1;
}

.workshop-card-header {
    position: relative;
    padding: 1.5rem 1.5rem 1rem;
    background: #ffffff;
}

.workshop-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: var(--t4t-charcoal);
}

.workshop-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #0f172a;
    border-top-left-radius: var(--t4t-radius);
    border-top-right-radius: var(--t4t-radius);
}

.workshop-square-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.workshop-card:hover .workshop-square-img {
    transform: scale(1.05);
}

.workshop-img-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.workshop-mode-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mode-offline {
    background-color: rgba(254, 243, 199, 0.95);
    color: #b45309;
}

.mode-online {
    background-color: rgba(224, 242, 254, 0.95);
    color: #0369a1;
}

.mode-hybrid {
    background-color: rgba(243, 232, 255, 0.95);
    color: #7e22ce;
    border: 1px solid rgba(192, 132, 252, 0.4);
}

.workshop-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.workshop-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.workshop-short-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Schedule and Info Box */
.workshop-meta-grid {
    background-color: #f8fafc;
    border: 1px solid var(--t4t-border);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    width: 28px;
    height: 28px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--t4t-purple);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.meta-content {
    font-size: 0.88rem;
    line-height: 1.3;
}

.meta-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    display: block;
}

.meta-val {
    font-weight: 700;
    color: #1e293b;
}

/* Pricing and Elite Card Benefit */
.workshop-pricing-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-top: 1px dashed var(--t4t-border);
    border-bottom: 1px dashed var(--t4t-border);
    margin-bottom: 1.25rem;
}

.price-display {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.price-free {
    color: var(--t4t-emerald);
}

.elite-benefit-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Seats and Deadline Notice */
.deadline-notice-box {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid #ef4444;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: #b91c1c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.seats-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.seats-available {
    background-color: #ecfdf5;
    color: #047857;
}

.seats-limited {
    background-color: #fff7ed;
    color: #c2410c;
}

.seats-full {
    background-color: #fef2f2;
    color: #b91c1c;
}

/* Register Button */
.btn-register-action {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: none;
    transition: all 0.25s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-register-action:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.3);
}

.btn-register-action:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Registration Form Page & Modal */
.registration-form-card {
    background: #ffffff;
    border: 1px solid var(--t4t-border);
    border-radius: 20px;
    box-shadow: var(--t4t-shadow);
    padding: 2rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--t4t-purple);
}

.form-control:focus, .form-select:focus {
    border-color: var(--t4t-purple);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.15);
}

/* Elite Toggle Box */
.elite-toggle-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.elite-toggle-box.active {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 30%, #fffbeb 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

.elite-feedback-badge {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 10px;
}

.feedback-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.feedback-info {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.feedback-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* TEQ Elite Card Replica - Matching Official Physical Card Design */
.teq-elite-card-front, .teq-elite-card-back {
    background-color: #0d0d0d;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
                      repeating-radial-gradient(ellipse at bottom, transparent, transparent 15px, rgba(205, 163, 62, 0.07) 16px, transparent 18px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 18px;
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.teq-gold-title {
    color: #e5c378;
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(229, 195, 120, 0.3);
}

.teq-gold-subtitle {
    color: #d8b76c;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.teq-card-num-box {
    background: linear-gradient(135deg, #fff7d6 0%, #fae69e 100%);
    color: #000000;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.teq-card-meta-pill {
    background: linear-gradient(135deg, #fff7d6 0%, #fae69e 100%);
    color: #000000;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.teq-card-footer-ribbon {
    background: linear-gradient(135deg, #fff7d6 0%, #fae69e 100%);
    color: #000000;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 800;
}

/* Price Summary Checkout Box */
.checkout-summary-box {
    background-color: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.4rem;
    font-weight: 800;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.8rem;
}

/* Confirmation & Ticket / Receipt */
.confirmation-ticket-wrapper {
    max-width: 780px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1px solid var(--t4t-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.ticket-header-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    color: #ffffff;
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    position: relative;
}

.ticket-punch-hole-left, .ticket-punch-hole-right {
    position: absolute;
    bottom: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--t4t-gray-bg);
    border-radius: 50%;
    z-index: 10;
}

.ticket-punch-hole-left { left: -15px; }
.ticket-punch-hole-right { right: -15px; }

.ticket-divider-line {
    border-bottom: 2px dashed #cbd5e1;
    margin: 0;
}

.ticket-body-content {
    padding: 2rem;
}

.receipt-info-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.receipt-info-val {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

/* Badges */
.badge-success { background-color: #10b981; color: white; }
.badge-warning { background-color: #f59e0b; color: white; }
.badge-danger { background-color: #ef4444; color: white; }
.badge-elite { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.badge-info { background-color: #0ea5e9; color: white; }

/* ==========================================================================
   Public Footer Component
   ========================================================================== */
.site-main-footer {
    background: radial-gradient(circle at 10% 0%, #1e1b4b 0%, #0f172a 55%, #050811 100%);
    color: #cbd5e1;
    position: relative;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #f97316 0%, #4f46e5 50%, #06b6d4 100%) 1;
    overflow: hidden;
}

.site-main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 85% 15%, rgba(79, 70, 229, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Pre-footer Callout Bar */
.footer-support-bar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 3rem;
}

.footer-support-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #fb923c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Footer Brand */
.footer-logo-img {
    height: 48px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

.footer-about-text {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Footer Headings */
.footer-heading {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fbbf24;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 2.5px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 3px;
}

/* Footer Navigation Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-links a::before {
    content: '›';
    color: #f97316;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: none;
}

.footer-links a:hover::before {
    color: #fbbf24;
    transform: translateX(2px);
}

/* Contact Info Items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: #ffffff;
}

/* Social Media Buttons */
.footer-social-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-icon-btn:hover {
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.social-icon-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

.social-icon-btn.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-icon-btn.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-icon-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-bottom-bar a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-bar a:hover {
    color: #f8fafc;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Mobile Responsive Fine-tuning */
@media (max-width: 767px) {
    .workshops-hero-section {
        padding: 2.25rem 0 2rem;
    }
    .hero-main-title {
        font-size: 1.95rem !important;
        line-height: 1.25;
    }
    .teq-card-num-box {
        font-size: clamp(0.85rem, 4.5vw, 1.15rem);
        letter-spacing: clamp(0.06em, 1.5vw, 0.15em);
        padding: 6px 10px;
        max-width: 100%;
        word-break: break-all;
    }
    .teq-card-meta-pill {
        font-size: 0.72rem;
        padding: 4px 8px;
    }
    .teq-gold-title {
        font-size: 0.95rem;
    }
    .confirmation-ticket-wrapper {
        border-radius: 16px;
        margin: 1rem auto;
    }
    .ticket-header-gradient {
        padding: 1.75rem 1.25rem 1.5rem;
    }
    .ticket-body-content {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .main-site-header, .site-main-footer, .top-announcement-bar, .no-print, .btn {
        display: none !important;
    }
    .confirmation-ticket-wrapper {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    .ticket-header-gradient {
        background: #1e1b4b !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
