/*
 * Resources Page Styles (BEM)
 * Organization: variables, reset, typography, layout, components, utilities, media queries
 */

/* Variables */
:root {
    --primary-dark-blue: #181c4a;
    --accent-orange: #f97316;
    --white: #ffffff;
    --light-blue: #EEF3FF;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --shadow-light: 0 2px 8px rgba(24, 28, 74, 0.04);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

/* Reset/normalize */
.resource-hub * {
    box-sizing: border-box;
}



/* Hero Section */
.resource-hero {
    background: var(--primary-dark-blue);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

/* Mobile adjustments for resource hero section */
@media (max-width: 768px) {
    .resource-hero {
        padding-top: 120px !important; /* Increased padding to prevent header cropping */
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 0 !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .resource-hero {
        padding-top: 75px !important;
        margin-top: 0 !important;
    }
}

/* Large screen adjustments */
@media (min-width: 1025px) {
    .resource-hero {
        padding-top: 80px !important;
        margin-top: 0 !important;
    }
}

.resource-hero__background {
    position: absolute;
    inset: 0;
}

.resource-hero__bg-element {
    position: absolute;
    border-radius: 50%;
}

.resource-hero__bg-element--1 {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background: var(--accent-orange);
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.resource-hero__bg-element--2 {
    bottom: 0;
    right: 0;
    width: 20rem;
    height: 20rem;
    background: var(--accent-orange);
    opacity: 0.05;
    transform: translate(50%, 50%);
}

.resource-hero__bg-element--3 {
    top: 50%;
    left: 25%;
    width: 16rem;
    height: 16rem;
    background: var(--white);
    opacity: 0.05;
    transform: translate(-50%, -50%);
}

.resource-hero__container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.resource-hero__content {
    text-align: center;
}

.resource-breadcrumb {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.resource-breadcrumb__link {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.resource-breadcrumb__link:hover {
    color: var(--white);
}

.resource-breadcrumb__separator {
    color: var(--gray-300);
    margin: 0 0.5rem;
}

.resource-breadcrumb__current {
    color: var(--white);
    font-weight: 500;
}

.resource-hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.resource-hero__description {
    font-size: 1.125rem;
    color: var(--gray-300);
    line-height: 1.6;
    max-width: 48rem;
    margin: 0 auto;
}

/* Main Resource Section */
.resource-section {
    padding: 4rem 0 6rem 0;
}

.resource-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Resource Cards */
.resource-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 20rem;
}

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

/* Success Stories Card */
.resource-card--success {
    grid-column: 1 / -1;
    height: 20rem;
}

.resource-success__content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
}

.resource-success__title {
    flex: 1;
    margin-right: 2rem;
}

.resource-success__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.resource-success__link {
    text-align: right;
}

/* Resource Headings */
.resource-heading {
    font-size: 4rem !important;
    font-weight: 300 !important;
    color: var(--primary-dark-blue) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
}

/* Override any Tailwind font-weight conflicts */
.resource-heading.font-bold,
.resource-heading.font-semibold,
.resource-heading.font-medium,
.resource-heading.font-normal {
    font-weight: 300 !important;
}

/* Ensure all h2 elements in resource cards have light weight */
.resource-card h2,
.resource-card .resource-heading {
    font-weight: 300 !important;
}

/* Resource Tags */
.resource-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
}

.resource-tags .resource-tag:nth-child(4),
.resource-tags .resource-tag:nth-child(5) {
    grid-column: span 1;
}

.resource-tags .resource-tag:nth-child(4) {
    grid-column: 1 / 2;
}

.resource-tags .resource-tag:nth-child(5) {
    grid-column: 2 / 3;
}

.resource-tag {
    background: var(--primary-dark-blue);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 2rem;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Resource Links */
.resource-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.resource-link:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .resource-heading {
        font-size: 3.5rem !important;
        font-weight: 300 !important;
    }
    
    .resource-hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .resource-heading {
        font-size: 3rem !important;
        font-weight: 300 !important;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    
    .resource-card--success {
        grid-column: 1;
    }
    
    .resource-success__content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-success__title {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .resource-success__right {
        align-items: flex-start;
        width: 100%;
    }
    
    .resource-hero__title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .resource-heading {
        font-size: 2.5rem !important;
        font-weight: 300 !important;
    }
    
    .resource-card {
        padding: 2rem;
        height: 18rem;
    }
    
    .resource-card--success {
        height: 18rem;
    }
    
    .resource-hero__title {
        font-size: 2rem;
    }
    
    .resource-hero {
        padding: 3rem 0 1.5rem 0;
    }
    
    .resource-section {
        padding: 3rem 0 4rem 0;
    }
}

@media (max-width: 640px) {
    .resource-heading {
        font-size: 2rem !important;
        font-weight: 300 !important;
    }
    
    .resource-card {
        padding: 1.5rem;
        height: 16rem;
    }
    
    .resource-card--success {
        height: 16rem;
    }
    
    .resource-tags {
        gap: 0.375rem;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    
    .resource-tags .resource-tag:nth-child(4) {
        grid-column: 1 / 2;
    }
    
    .resource-tags .resource-tag:nth-child(5) {
        grid-column: 2 / 3;
    }
    
    .resource-tag {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
        height: 1.75rem;
    }
    
    .resource-hero__title {
        font-size: 1.75rem;
    }
    
    .resource-hero__description {
        font-size: 1rem;
    }
    
    .resource-container {
        padding: 0 0.75rem;
    }
} 