/**
 * Paving Calculator System Styles
 * Version 1.9.0 - Integrates with Internal Pages Sidebar layout
 */

/* ========================================
   Layout Styles (matching Internal Pages Sidebar)
   Ensures calculator pages have header bar + sidebar
   ======================================== */

/* Page Container - controls overall width for individual calculator pages */
.pcs-page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 0 0 0;
}

/* Blue Header Bar - Pale blue, smaller padding */
.internal-page-header-bar {
    background: #d5e7f4;
    padding: 25px 0;
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    border-radius: 8px;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
}

/* Inside container, header bar takes full width of container */
.pcs-page-container .internal-page-header-bar {
    max-width: 100%;
}

/* Hub page header - pull up to compensate for theme's page content margin */
.internal-page-header-bar.pcs-hub-header-bar {
    margin-top: -5px;
}

.internal-page-header-bar h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0d3b59;
    margin: 0 0 8px 0;
}

.internal-page-header-bar .header-subtext {
    font-size: 15px;
    color: #3d5a6e;
    margin: 0;
}

/* Page Layout - 1170px to sit within header/footer */
.internal-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
    padding: 0 0 40px 0;
    box-sizing: border-box;
}

/* Inside container, wrapper takes full width of container */
.pcs-page-container .internal-page-wrapper {
    max-width: 100%;
}

.internal-page-content {
    min-width: 0;
    width: 100%;
}

/* Responsive layout */
@media (max-width: 1100px) {
    .pcs-page-container {
        padding: 20px 15px 0 15px;
    }
    
    .internal-page-header-bar {
        margin-left: 0;
        margin-right: 0;
    }
    
    .internal-page-wrapper {
        display: block !important;
        padding: 0 0 40px 0;
    }
    
    /* Ensure content displays first */
    .internal-page-content {
        display: block !important;
        width: 100% !important;
        margin-bottom: 30px;
    }
    
    /* Force sidebar to stack below content */
    .ukptg-sidebar,
    .internal-page-wrapper > aside,
    .internal-page-wrapper aside {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
}

@media (max-width: 768px) {
    .pcs-page-container {
        padding: 15px 10px 0 10px;
    }
    
    .internal-page-header-bar {
        padding: 20px 15px;
    }
    
    .internal-page-header-bar h3 {
        font-size: 22px;
    }
    
    .internal-page-header-bar .header-subtext {
        font-size: 14px;
    }
}

/* ========================================
   Single Calculator Page - Content Box Layout
   Matches the Location/Town page style
   ======================================== */

/* Content box with light grey border - inside the main content area */
.pcs-content-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
}

/* Hero image - WITH padding inside box, all corners rounded */
.pcs-hero-image {
    margin: 0 0 25px 0;
    border-radius: 8px;
    overflow: hidden;
}

.pcs-hero-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Section headings inside content box */
.pcs-content-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.pcs-content-box h2:not(:first-of-type) {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

/* Intro text styling */
.pcs-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
}

.pcs-intro-text p {
    margin-bottom: 15px;
}

.pcs-intro-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Calculator Tool - Inside Content Box
   ======================================== */

.pcs-calculator-wrapper {
    margin: 0;
    padding: 0;
}

.pcs-calculator-tool {
    background: #f8fafc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin: 0;
}

.pcs-calculator-tool h3 {
    margin: 0 0 20px 0;
    color: #0d3b59;
    font-size: 18px;
    font-weight: 700;
}

.pcs-calculator-form {
    display: grid;
    gap: 18px;
}

.pcs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 600px) {
    .pcs-form-row {
        grid-template-columns: 1fr;
    }
}

.pcs-form-group {
    display: flex;
    flex-direction: column;
}

.pcs-form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

.pcs-form-group input,
.pcs-form-group select {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
    background: #fff;
}

.pcs-form-group input:focus,
.pcs-form-group select:focus {
    outline: none;
    border-color: #0d3b59;
    box-shadow: 0 0 0 3px rgba(13, 59, 89, 0.1);
}

.pcs-form-group small {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.pcs-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.pcs-calculate-btn,
.pcs-reset-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcs-calculate-btn {
    background: #0d3b59;
    color: white;
    flex: 1;
}

.pcs-calculate-btn:hover {
    background: #092a40;
}

.pcs-reset-btn {
    background: #e5e7eb;
    color: #374151;
    padding: 12px 20px;
}

.pcs-reset-btn:hover {
    background: #d1d5db;
}

/* Calculator Results */
.pcs-calculator-results {
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.pcs-calculator-results h4 {
    margin: 0 0 15px 0;
    color: #065f46;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcs-calculator-results h4::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.pcs-results-content {
    font-size: 15px;
    line-height: 1.6;
}

.pcs-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.pcs-result-label {
    font-weight: 500;
    color: #374151;
}

.pcs-result-value {
    font-weight: 700;
    color: #0d3b59;
    font-size: 16px;
}

.pcs-result-summary {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 600;
    color: #065f46;
    border: 1px solid #bbf7d0;
    text-align: left;
    font-size: 16px;
}

/* ========================================
   Pro Tips & Common Uses - Grid Layout
   ======================================== */

.pcs-calculator-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

@media (max-width: 700px) {
    .pcs-calculator-info {
        grid-template-columns: 1fr;
    }
}

.pcs-pro-tips,
.pcs-common-uses {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.pcs-pro-tips {
    border-left: 4px solid #3b82f6;
}

.pcs-common-uses {
    border-left: 4px solid #f97316;
}

.pcs-pro-tips h4,
.pcs-common-uses h4 {
    margin: 0 0 12px 0;
    color: #0d3b59;
    font-size: 15px;
    font-weight: 700;
}

.pcs-pro-tips ul,
.pcs-common-uses ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
}

.pcs-pro-tips li,
.pcs-common-uses li {
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 14px;
}

.pcs-pro-tips li:last-child,
.pcs-common-uses li:last-child {
    margin-bottom: 0;
}

/* ========================================
   Related Calculators - Inside Content Box
   ======================================== */

.pcs-related-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.pcs-related-section h3 {
    color: #0d3b59;
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 700;
}

.pcs-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.pcs-related-card {
    background: #f8fafc;
    padding: 18px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.pcs-related-card:hover {
    border-color: #0d3b59;
    box-shadow: 0 4px 12px rgba(13, 59, 89, 0.15);
    transform: translateY(-3px);
}

.pcs-related-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.pcs-related-card h4 a {
    color: #0d3b59;
    text-decoration: none;
    font-weight: 600;
}

.pcs-related-card h4 a:hover {
    color: #092a40;
    text-decoration: underline;
}

.pcs-related-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* See Also Section - Business Calculators link */
.pcs-see-also-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #0d3b59;
}

.pcs-see-also-section h3 {
    color: #0d3b59;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.pcs-see-also-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.pcs-see-also-card {
    background: #f8fafc;
    padding: 18px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pcs-see-also-card:hover {
    border-color: #0d3b59;
    box-shadow: 0 4px 12px rgba(13, 59, 89, 0.15);
    transform: translateY(-3px);
}

.pcs-see-also-icon {
    font-size: 28px;
    color: #0d3b59;
    flex-shrink: 0;
}

.pcs-see-also-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.pcs-see-also-content h4 a {
    color: #0d3b59;
    text-decoration: none;
    font-weight: 600;
}

.pcs-see-also-content h4 a:hover {
    text-decoration: underline;
}

.pcs-see-also-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Hub page See Also - extra top margin */
.pcs-hub-see-also {
    margin-top: 30px;
}

/* Back to Hub Button */
.pcs-back-button {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #0d3b59;
}

.pcs-back-button a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0d3b59;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pcs-back-button a:hover {
    background: #092a40;
    color: white;
}

/* ========================================
   Calculator Hub Styles (with sidebar)
   ======================================== */

.pcs-calculator-hub {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Hub Filters */
.pcs-hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pcs-filter-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
}

.pcs-filter-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.pcs-filter-btn.active {
    background: #0d3b59;
    color: white;
    border-color: #0d3b59;
}

/* Calculator Grid - 2 columns for sidebar layout */
.pcs-calculators-grid {
    display: grid;
    gap: 15px;
}

.pcs-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pcs-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 700px) {
    .pcs-calculators-grid {
        grid-template-columns: 1fr;
    }
}

/* Calculator Cards - Compact for sidebar layout */
.pcs-calculator-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pcs-calculator-card:hover {
    box-shadow: 0 4px 12px rgba(13, 59, 89, 0.15);
    border-color: #0d3b59;
    transform: translateY(-3px);
}

.pcs-card-icon {
    font-size: 28px;
    color: #0d3b59;
    margin-bottom: 10px;
    line-height: 1;
}

.pcs-card-icon .dashicons {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.pcs-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pcs-card-content h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.3;
    font-weight: 600;
}

.pcs-card-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    flex: 1;
    line-height: 1.5;
}

.pcs-coverage-rate {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin: 0 0 12px 0;
}

.pcs-card-button {
    display: block;
    padding: 12px 16px;
    background: #0d3b59;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.pcs-card-button:hover {
    background: #092a40;
    color: white !important;
}

/* Filter Animation */
.pcs-calculator-card.hidden {
    display: none;
}

/* Loading State */
.pcs-calculator-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pcs-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 59, 89, 0.3);
    border-radius: 50%;
    border-top-color: #0d3b59;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .pcs-content-box {
        padding: 20px;
    }
    
    .pcs-hero-image {
        margin-bottom: 20px;
    }
    
    .pcs-hero-image img {
        height: 150px;
    }
    
    .pcs-calculator-tool {
        padding: 18px;
    }
    
    .pcs-form-actions {
        flex-direction: column;
    }
    
    .pcs-calculate-btn,
    .pcs-reset-btn {
        width: 100%;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .pcs-calculator-tool,
    .pcs-hub-filters,
    .pcs-card-button,
    .pcs-back-button {
        display: none;
    }
    
    .pcs-calculator-results {
        border: 2px solid #000;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.pcs-calculate-btn:focus,
.pcs-reset-btn:focus,
.pcs-filter-btn:focus {
    outline: 3px solid #0d3b59;
    outline-offset: 2px;
}

/* ========================================
   No Calculators Message
   ======================================== */

.pcs-no-calculators {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e0e0e0;
}

/* ========================================
   Sponsor Banner Styles (v2.0.0)
   ======================================== */

.pcs-sponsor-banner {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Clickable banner with overlay link */
.pcs-sponsor-clickable {
    cursor: pointer;
}

.pcs-sponsor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-radius: 8px;
}

/* =========================
   COLOUR VARIATIONS
   ========================= */

/* GOLD (Default) */
.pcs-sponsor-gold {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
}
.pcs-sponsor-gold .pcs-sponsor-label { color: #b45309; background: rgba(180, 83, 9, 0.12); }
.pcs-sponsor-gold .pcs-sponsor-name { color: #78350f; }
.pcs-sponsor-gold .pcs-sponsor-description { color: #92400e; }
.pcs-sponsor-banner.pcs-sponsor-gold.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

/* ORANGE */
.pcs-sponsor-orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    border: 1px solid #f97316;
}
.pcs-sponsor-orange .pcs-sponsor-label { color: #c2410c; background: rgba(194, 65, 12, 0.12); }
.pcs-sponsor-orange .pcs-sponsor-name { color: #7c2d12; }
.pcs-sponsor-orange .pcs-sponsor-description { color: #9a3412; }
.pcs-sponsor-banner.pcs-sponsor-orange.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #ea580c;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

/* CORAL / SALMON */
.pcs-sponsor-coral {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #f87171;
}
.pcs-sponsor-coral .pcs-sponsor-label { color: #dc2626; background: rgba(220, 38, 38, 0.1); }
.pcs-sponsor-coral .pcs-sponsor-name { color: #991b1b; }
.pcs-sponsor-coral .pcs-sponsor-description { color: #b91c1c; }
.pcs-sponsor-banner.pcs-sponsor-coral.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3);
    transform: translateY(-2px);
}

/* PURPLE */
.pcs-sponsor-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border: 1px solid #a855f7;
}
.pcs-sponsor-purple .pcs-sponsor-label { color: #7c3aed; background: rgba(124, 58, 237, 0.1); }
.pcs-sponsor-purple .pcs-sponsor-name { color: #581c87; }
.pcs-sponsor-purple .pcs-sponsor-description { color: #6b21a8; }
.pcs-sponsor-banner.pcs-sponsor-purple.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    border-color: #9333ea;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

/* TEAL */
.pcs-sponsor-teal {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    border: 1px solid #14b8a6;
}
.pcs-sponsor-teal .pcs-sponsor-label { color: #0d9488; background: rgba(13, 148, 136, 0.12); }
.pcs-sponsor-teal .pcs-sponsor-name { color: #134e4a; }
.pcs-sponsor-teal .pcs-sponsor-description { color: #115e59; }
.pcs-sponsor-banner.pcs-sponsor-teal.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
    border-color: #0d9488;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    transform: translateY(-2px);
}

/* SLATE GREY */
.pcs-sponsor-slate {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #94a3b8;
}
.pcs-sponsor-slate .pcs-sponsor-label { color: #475569; background: rgba(71, 85, 105, 0.1); }
.pcs-sponsor-slate .pcs-sponsor-name { color: #1e293b; }
.pcs-sponsor-slate .pcs-sponsor-description { color: #334155; }
.pcs-sponsor-banner.pcs-sponsor-slate.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #64748b;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
}

/* GREEN */
.pcs-sponsor-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #22c55e;
}
.pcs-sponsor-green .pcs-sponsor-label { color: #15803d; background: rgba(21, 128, 61, 0.12); }
.pcs-sponsor-green .pcs-sponsor-name { color: #14532d; }
.pcs-sponsor-green .pcs-sponsor-description { color: #166534; }
.pcs-sponsor-banner.pcs-sponsor-green.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* BLUE */
.pcs-sponsor-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
}
.pcs-sponsor-blue .pcs-sponsor-label { color: #1d4ed8; background: rgba(29, 78, 216, 0.1); }
.pcs-sponsor-blue .pcs-sponsor-name { color: #1e3a8a; }
.pcs-sponsor-blue .pcs-sponsor-description { color: #1e40af; }
.pcs-sponsor-banner.pcs-sponsor-blue.pcs-sponsor-clickable:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* =========================
   COMMON ELEMENTS
   ========================= */

.pcs-sponsor-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.pcs-sponsor-logo {
    flex-shrink: 0;
}

.pcs-sponsor-logo img {
    max-height: 60px;
    max-width: 100px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.pcs-sponsor-text {
    flex: 1;
}

.pcs-sponsor-label {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 3px;
}

.pcs-sponsor-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pcs-sponsor-description {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

/* Sponsor on card in hub */
.pcs-card-sponsor {
    background: #fef3c7;
    padding: 8px 10px;
    border-radius: 4px;
    margin: 0 0 10px 0;
    border-left: 3px solid #f59e0b;
}

.pcs-card-sponsor-label {
    display: block;
    font-size: 10px;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.pcs-card-sponsor-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #78350f;
    line-height: 1.3;
}

@media (max-width: 500px) {
    .pcs-sponsor-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pcs-sponsor-logo img {
        max-height: 40px;
    }
}


