/* B2B Campaign Guide Styles */

.campaign-guide-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 0; /* Changed from 4rem to 0 to remove bottom padding */
}

.guide-hero {
    text-align: center;
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #764ba2 100%);
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 5rem;
    color: white;
}

/* Specific class for the bottom hero to ensure it sits flush with the page end */
.guide-hero.hero-bottom {
    margin-bottom: 0;
    padding-bottom: 8rem; /* Extra padding to compensate for footer spacing if needed */
}

.guide-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: white;
    font-weight: 800;
}

.guide-hero .btn-primary,
.guide-hero .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.guide-hero .btn-primary {
    background-color: var(--color-cta, #ff4757) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    border: none;
}

.guide-hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
    filter: brightness(1.1);
}

.guide-hero .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px);
}

.guide-hero .btn-secondary:hover {
    background-color: white !important;
    color: var(--color-primary) !important;
    transform: translateY(-3px);
}

.step-card {
    margin-bottom: 5rem;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--color-border-light);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    border: none;
    cursor: pointer;
}

.resource-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: white;
}

.resource-button.secondary {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.resource-button.secondary:hover {
    background-color: var(--color-bg-lighter);
    color: var(--color-text-dark);
}

.tip-box {
    background-color: #EFF6FF;
}

.tip-box h4 {
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.warning-box {
    background-color: #FFF7ED;
}

.warning-box h4 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tags-preview {
    font-family: monospace;
    background: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .guide-hero {
        padding: 4rem 1rem;
    }
    .guide-hero h1 {
        font-size: 2.25rem;
    }
    .step-card {
        padding: 2rem;
    }
}

.example-postcards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two larger columns instead of auto-fill */
    gap: 2.5rem;
    margin-top: 2rem;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.example-card strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.example-preview {
    width: 100%;
    aspect-ratio: 148 / 105;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    position: relative;
    /* Disable scrolling on the container itself */
    pointer-events: none;
}

.preview-iframe {
    position: absolute;
    /* Push the iframe slightly outside the visible area to cut off browser scrollbars */
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border: none;
    overflow: hidden;
    z-index: 1;
}

/* Hide scrollbars for Microsoft Edge/IE */
.preview-iframe {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbars for the iframe container */
.example-preview::-webkit-scrollbar {
    display: none;
}
.example-preview {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 992px) {
    .example-postcards-grid {
        grid-template-columns: 1fr;
    }
}
