/* Square corners on every element on the Resources page (issue #513). */
.resources-page,
.resources-page *,
.resources-page *::before,
.resources-page *::after {
    border-radius: 0 !important;
}

/* Hero Section - matches the Industries page (dark gradient + orange glows) */
.resources-hero {
    background: linear-gradient(to right, #000000 0%, #1a1a1a 100%);
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.resources-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 50%, rgba(250, 167, 71, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 167, 71, 0.10) 0%, transparent 50%);
}
.resources-hero > .container,
.resources-hero > [class*="container"] { position: relative; z-index: 1; width: 100%; }

.resources-hero h1 {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif !important;
    font-size: 3.25rem;
    line-height: 1;
    color: white;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resources-hero p {
    font-family: 'JCBEuro Roman Regular', sans-serif !important;
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #D1D5DB;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.resources-hero .w-20 {
    width: 96px;
    height: 4px;
    background-color: #FAA747;
    margin: 16px auto;
}

/* Breadcrumb Navigation - matches Industries: white bar + subtle shadow */
.breadcrumb-nav {
    background: #ffffff;
    padding: 16px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.breadcrumb-nav .font-jcb-bold { color: #1a1a1a; }
.breadcrumb-nav a:hover { color: #FAA747; }

.breadcrumb-nav nav {
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

.breadcrumb-nav a {
    transition: color 0.3s ease;
}

/* Resources Grid Section */
.resources-grid-section {
    padding: 80px 0;
    background: #fff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

/* Resource Card Styling */
.resource-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    padding: 30px 28px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 23, 28, 0.07);
    border-color: #FAA747;
}

/* Power Desk lead card — leads the grid, soft orange tint + filled square mark */
.resource-card--feature {
    order: -1;
    border-color: #dfe3e9;
    background: linear-gradient(180deg, #fffaf2 0%, #ffffff 60%);
}
.resource-card--feature .resource-icon {
    background: #FAA747;
    border-color: #FAA747;
}
.resource-card--feature .resource-icon i { color: #ffffff; }

/* Square-frame icon (orange outline + orange glyph) replacing the round gradient */
.resource-icon {
    width: 56px;
    height: 56px;
    background: transparent;
    border: 2.5px solid #FAA747;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.resource-icon i {
    font-size: 22px;
    color: #FAA747;
}

.resource-title {
    font-family: 'JCBEuro Bold Regular', sans-serif;
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.resource-description {
    font-family: 'JCBEuro Roman Regular', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-features {
    margin-bottom: 30px;
}

.resource-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-features li {
    font-family: 'JCBEuro Roman Regular', sans-serif;
    font-size: 14px;
    color: #4b5563;
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.resource-features i {
    color: #E08F2C;
    margin-right: 10px;
    font-size: 12px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
    font-size: 16px;
    color: #FAA747;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.resource-link:hover {
    color: #f59e0b;
    transform: translateX(5px);
}

.resource-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.resource-link:hover i {
    transform: translateX(5px);
}

/* Calculator Links */
.calculator-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.calc-link {
    flex: 1;
    padding: 10px 15px;
    background: #FAA747;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'JCBEuro Bold', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.calc-link:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* CTA Section */
.resources-cta-section {
    background: #f9fafb;
    padding: 80px 0;
    border-top: 1px solid #e5e7eb;
}

.resources-cta-section h2 {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resources-cta-section p {
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: #FAA747;
    color: white;
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(250, 167, 71, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: white;
    color: #000;
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #000;
    color: white;
    transform: translateY(-3px);
}

/* Container Styles */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .resources-hero {
        padding: 60px 0;
    }

    .resources-hero h1 {
        font-size: 2rem;
    }

    .resources-hero p {
        font-size: 1rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .resource-card {
        padding: 30px 20px;
    }

    .resource-icon {
        width: 60px;
        height: 60px;
    }

    .resource-icon i {
        font-size: 28px;
    }

    .resource-title {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .resources-grid-section {
        padding: 50px 0;
    }

    .resources-cta-section {
        padding: 50px 0;
    }

    .calculator-links {
        flex-direction: column;
    }

    .calc-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .resources-hero h1 {
        font-size: 1.75rem;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .resource-title {
        font-size: 20px;
    }

    .resource-description {
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 14px;
    }
}