
/* =========================================
   1. Reset & Base Setup
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #0f172a;      /* Deep Slate */
    --color-secondary: #334155;    /* Medium Slate */
    --color-accent: #3b82f6;       /* Bright Blue */
    --color-accent-hover: #2563eb; /* Darker Blue */
    --color-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --color-bg: #f8fafc;           /* Very light slate bg */
    --color-surface: #ffffff;      /* Card background */
    --color-text: #1e293b;         /* Main text color */
    --color-text-muted: #64748b;   /* Secondary text */
    --color-border: #e2e8f0;       /* Border color */
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Sizing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-pill: 50rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.4);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. Layout & Containers
   ========================================= */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container,
.site-content {
    width: 100%;
    max-width: 75rem; /* ~1200px */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.content-area {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    clip: auto !important;
    clip-path: none;
    color: var(--color-accent);
    display: block;
    font-size: 1rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 1rem;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =========================================
   3. Typography & Article Styles
   ========================================= */
article.page {
    background: var(--color-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    animation: fadeIn 0.8s ease-out forwards;
}

.entry-header {
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
}

/* Decorative line under title */
.entry-header::after {
    content: '';
    display: block;
    width: 4rem;
    height: 0.25rem;
    background: var(--color-accent-gradient);
    margin: var(--spacing-sm) auto 0;
    border-radius: var(--border-radius-pill);
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.entry-content {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

.entry-content p {
    margin-bottom: 1.5rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

/* Links inside content */
.entry-content a:not(.btn) {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
    font-weight: 600;
}

.entry-content a:not(.btn):hover {
    border-bottom-color: var(--color-accent);
    color: var(--color-accent-hover);
}

/* =========================================
   4. Interactive Elements (Buttons)
   ========================================= */
.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin: var(--spacing-md) 0;
}

/* Handle Vertical Class if needed, but flex wrap is usually safer for responsiveness */
.is-vertical {
    flex-direction: column;
    align-items: center;
}

.btn-box {
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    background: var(--color-accent-gradient);
    border: none;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-size-big {
    font-size: 1.125rem;
    padding: 1.25rem 3rem;
}

/* Button Hover State */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: #ffffff;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Button Shine Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* =========================================
   5. Images & Media
   ========================================= */
.wp-block-image {
    margin: var(--spacing-md) 0;
    text-align: center;
}

/* Handle generic images and Schema spans */
.wp-block-image img,
.wp-block-image span[itemprop="image"] img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    display: inline-block;
}

.wp-block-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.size-large {
    width: 100%;
}

figcaption {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* =========================================
   6. Forms (Generic Styling as requested)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: #f1f5f9;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    margin-bottom: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Custom Checkbox/Radio */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-accent);
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
    vertical-align: middle;
    cursor: pointer;
}

/* =========================================
   7. Animations
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   8. Responsive Design
   ========================================= */

/* Tablet & Mobile */
@media screen and (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
    }

    article.page {
        padding: var(--spacing-md);
        border-radius: var(--border-radius-md);
    }

    .entry-header {
        text-align: left;
    }
    
    .entry-header::after {
        margin: var(--spacing-sm) 0 0;
    }

    .btn {
        width: 100%; /* Full width buttons on mobile */
        display: flex;
    }
    
    .btn-box {
        width: 100%;
    }

    .wp-block-image {
        margin: var(--spacing-sm) -1rem; /* Full bleed images on small screens */
    }

    .wp-block-image img {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}
