/* Import Montserrat with multiple weights */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: #f8fafc; 
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Responsive Container */
.container {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* The White Paper/Article Box */
.main-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    border: 1px solid #f1f5f9;
}

/* --- DYNAMIC AD SLOTS --- */
.ad-slot {
    display: block;        /* Ensures block-level layout */
    width: 100%;           /* Critical: Provides width for AdSense calculation */
    margin: 20px auto;     /* Vertical spacing */
    clear: both;           /* Prevents float issues */
    overflow: visible;     /* Allows AdSense to expand the slot vertically */
    min-height: 1px;       /* Minimum pixel to avoid being seen as 'empty' */
    text-align: center;
}

/* Ensure the Google AdSense 'ins' tag takes full width */
.ad-slot ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    height: auto !important; /* Let AdSense decide the height */
}

/* CENTERED BUTTONS & WRAPPERS */
#header-area, #footer-section, .button-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* PREMIUM GRADIENT BUTTON */
.adi-blue { 
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%); 
    color: white !important; 
    padding: 18px 45px; 
    border-radius: 12px; 
    border: none; 
    font-weight: 700; 
    cursor: pointer; 
    text-decoration: none; 
    display: inline-block; 
    margin: 15px auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    width: fit-content;
}

.adi-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    filter: brightness(1.1);
}

.adi-blue.disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Typography */
h1 { font-size: 2.2rem; font-weight: 700; color: #0f172a; margin-bottom: 20px; }
p { margin-bottom: 1.5rem; color: #475569; font-size: 1.1rem; }

/* Hide elements without affecting layout flow */
.hidden { display: none !important; }

/* STEP BADGE */
.step-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 640px) {
    .main-wrapper { padding: 25px 15px; }
    h1 { font-size: 1.6rem; }
    .adi-blue { 
        width: 100%;
        font-size: 16px; 
        padding: 16px 20px;
    }
    .container { padding: 10px; }
}