/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F2F5F5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand h1 {
    color: #003452;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0098EE;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #003452 0%, #004C76 100%);
    color: white;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FFC900;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Hero Section */
.featured-hero {
    background: #F2F5F5;
    padding: 3rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.featured-resource-hero {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    border: 2px solid #FF9316;
}

.featured-resource-hero h3 {
    font-size: 2.5rem;
    color: #003452;
    margin-bottom: 1rem;
}

.featured-resource-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Resource Sections */
.resource-section {
    padding: 3rem 0;
    background: white;
}

.resource-section:nth-child(even) {
    background: #F2F5F5;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 2rem;
    color: #003452;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 0.95rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Resources Section */
.resources {
    padding: 4rem 0;
    background: white;
}

.resources h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #003452;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #003452;
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #0098EE;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #004C76;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #FF9316;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #FFC900;
}

/* Featured Resources */
.featured {
    padding: 4rem 0;
    background: #F2F5F5;
}

.featured h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #003452;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* card visual improvement: enhanced hover elevation and interactivity */
.resource-card {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E5E7EB;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* card visual improvement: dramatic hover effect with elevation and scale */
.resource-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #0098EE;
}

/* card visual improvement: category badge styling */
.resource-category {
    display: inline-block;
    background: #0098EE;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

/* card visual improvement: optional "New" badge support */
.resource-card .badge-new {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FF9316 0%, #FFC900 100%);
    color: #003452;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 147, 22, 0.4);
    z-index: 10;
}

/* card visual improvement: optional "Featured" badge support */
.resource-card .badge-featured {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #0098EE 0%, #004C76 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 152, 238, 0.4);
    z-index: 10;
}

/* card visual improvement: bold and prominent card titles */
.resource-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #003452;
    line-height: 1.3;
    font-weight: 700;
}

/* card visual improvement: smaller text with improved line-height for readability */
.resource-card p {
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 0.875rem;
    flex-grow: 1;
}

.resource-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.resource-type {
    background: #F2F5F5;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
}

.resource-time {
    background: #E5E7EB;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
}

/* card visual improvement: enhanced CTA button with hover elevation */
.resource-card .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* card visual improvement: CTA button hover with lift effect */
.resource-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 152, 238, 0.3);
}

/* Newsletter Section */
.newsletter {
    background: #003452;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

/* Beehiiv form customization */
.beehiiv-embed {
    background: white !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Override Beehiiv's default styling to match your brand */
.newsletter-form iframe {
    background: white !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Beehiiv wrapper for better integration */
.beehiiv-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 !important;
}

.beehiiv-wrapper iframe {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Footer */
footer {
    background: #004C76;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .featured-resource-hero {
        padding: 2rem;
    }

    .featured-resource-hero h3 {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Featured Resource Styling */
.featured-resource {
    position: relative;
    border: 2px solid #FF9316;
    background: linear-gradient(135deg, #fff 0%, #F2F5F5 100%);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF9316;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 147, 22, 0.3);
}

.featured-resource h4 {
    color: #FF9316;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.featured-resource .btn-primary {
    background: #FF9316;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.featured-resource .btn-primary:hover {
    background: #FFC900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 147, 22, 0.4);
}
