/* ==========================================================================
   Two-Column Resource Landing Grid Setup
   ========================================================================== */
.resource-landing-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Splits layout into distinct weight groups */
    gap: 50px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    align-items: start;
}

/* ==========================================================================
   Left Column: Resource Details & Image Media Shell
   ========================================================================== */
.resource-main-heading {
    color: #0a2540;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 12px;
}

.resource-sub-intro {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 30px;
}

.resource-preview-card {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.resource-cover-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.resource-fallback-cover {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #0a2540 0%, #11365a 100%);
    color: #ffffff;
}

.resource-fallback-cover .fallback-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.resource-extended-description h3 {
    color: #0a2540;
    font-size: 20px;
    margin-bottom: 15px;
}

.resource-extended-description ul {
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.7;
}

/* ==========================================================================
   Right Column: Form Card Panel Integration
   ========================================================================== */
.inline-form-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
    position: sticky;
    top: 30px; /* Locks card in view as user scrolls down content */
}

.inline-form-title {
    color: #0a2540;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
}

.inline-form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media screen and (max-width: 900px) {
    .resource-landing-wrapper {
        grid-template-columns: 1fr; /* Collapses to single column workflow on tablet/mobile screens */
        gap: 40px;
    }
    
    .inline-form-card {
        position: static;
    }
}
