:root {
    /* Old primary, will be replaced by new variables */
    /* Old primary-light, use as primary-accent */
    /* Old primary-dark */
    /* Old text-warm */
    /* Old bg-light */
    /* Old card-shadow */

    /* New site-wide variables - defined in main.css, but for self-containment/readability in resources.css */
    --color-deep-forest: #2d4034;
    --color-earth-brown: #5c4a3c;
    --color-stone-gray: #a0a5a3;
    --color-light-sand: #f5f2ec;
    --color-warm-accent: #d48d3f;
    --color-text-dark: #38302a;
    --color-text-light: #f8f8f8;
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 6px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

.resources-hero {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.resources-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.resources-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.resource-section {
    padding: 3rem 0;
}

.resource-section:nth-child(even) {
    background-color: var(--bg-light);
}

.resource-section-title {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.resource-section-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.resource-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.resource-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-card .contact-info {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.resource-card .contact-info p {
    margin-bottom: 0.5rem;
}

.resource-card .contact-info p:last-child {
    margin-bottom: 0;
}

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

.resource-card .contact-info a:hover {
    color: var(--primary-light);
}

.resource-card .description {
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0;
    flex-grow: 1;
}

.emergency-banner {
    background: #dc3545;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}

.emergency-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.emergency-banner p {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.emergency-banner .phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.emergency-banner .phone:hover {
    text-decoration: underline;
}

.hero-section {
    background-color: var(--color-deep-forest);
    color: var(--color-text-light);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 200px;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/images/mountainman.png") no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.section-py {
    padding: 5rem 0;
}

.bg-light-gray {
    background-color: var(--color-light-sand);
}

.section-title {
    color: var(--color-deep-forest);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-dark);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.emergency-banner-new {
    background-color: var(--color-warm-accent);
    color: var(--color-text-light);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.emergency-banner-new h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.emergency-banner-new p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.emergency-banner-new a {
    color: var(--color-text-light);
    text-decoration: underline;
    font-weight: bold;
}

.emergency-banner-new a:hover {
    text-decoration: none;
}

.resource-card-new {
    background-color: var(--color-earth-brown);
    color: var(--color-text-light);
    padding: 2.5rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.resource-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.icon-circle-new {
    background-color: var(--color-deep-forest);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-circle-new svg {
    color: var(--color-text-light);
    width: 30px;
    height: 30px;
}

.card-title-new {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-info-new {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.25rem;
    margin: 1rem 0;
    width: 100%;
}

.contact-info-new p {
    margin-bottom: 0.5rem;
}

.contact-info-new p:last-child {
    margin-bottom: 0;
}

.contact-info-new a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-new a:hover {
    color: var(--color-warm-accent);
    text-decoration: underline;
}

.description-new {
    font-size: 0.95rem;
    opacity: 0.9;
    flex-grow: 1;
}

.btn-primary-custom {
    background-color: var(--color-warm-accent);
    color: var(--color-text-light);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--color-earth-brown);
    box-shadow: var(--shadow-dark);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .section-py {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .emergency-banner-new h2 {
        font-size: 1.5rem;
    }

    .emergency-banner-new p {
        font-size: 1rem;
    }

    .resource-card-new {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }

    .icon-circle-new {
        width: 50px;
        height: 50px;
    }

    .icon-circle-new svg {
        width: 25px;
        height: 25px;
    }

    .contact-info-new {
        padding: 0.75rem;
    }

    .description-new {
        font-size: 0.85rem;
    }

    .btn-primary-custom {
        width: 80%;
        max-width: 250px;
        display: block;
        margin: 1rem auto;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 150px;
        padding: 2rem 0;
    }

    .hero-section::before {
        opacity: 0.2;
    }

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

    .hero-content .lead {
        font-size: 1rem;
    }
}

.resources-cta-section h2 {
    /* Darken the main title */
    background: linear-gradient(
        to right,
        var(--color-text-dark),
        var(--color-deep-forest)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.resources-cta-section h2 span {
    /* Darken the span text even more */
    background: linear-gradient(
        to right,
        var(--color-deep-forest),
        var(--color-earth-brown)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
