
/** 
 * Reset & Normalize 
 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --color-primary: #1e3a8a; /* Deep Royal Blue */
    --color-primary-light: #3b82f6;
    --color-accent: #10b981; /* Success Green */
    --color-accent-hover: #059669;
    --color-text-main: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg-body: #f3f4f6;
    --color-bg-surface: #ffffff;
    --color-border: #e5e7eb;
    
    /* Typography */
    --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --line-height-base: 1.65;
    --font-size-base: 1rem;
    
    /* Spacing & Sizes */
    --spacing-unit: 1rem;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1.5rem;
    --container-width: 75rem; /* ~1200px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-accent: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-base);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
 * Layout Structure 
 */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
}

.site-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* 
 * 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-bg-surface);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 1rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-sm);
}

/* 
 * Article & Card Styling 
 */
.type-page {
    background-color: var(--color-bg-surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.entry-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem);
    color: white;
    text-align: center;
}

.entry-content {
    padding: clamp(1.5rem, 5vw, 3rem);
    font-size: 1.125rem;
}

/* 
 * Typography 
 */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.entry-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wp-block-heading {
    margin-top: 2.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.wp-block-heading strong {
    font-weight: 800;
}

/* Decorative underline for H2 */
.wp-block-heading::after {
    content: '';
    display: block;
    width: 3rem;
    height: 0.25rem;
    background-color: var(--color-accent);
    margin-top: 0.5rem;
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.type-page:hover .wp-block-heading::after {
    width: 100%;
}

p {
    margin-bottom: 1.5rem;
    color: #374151;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}

/* 
 * Buttons & Interactions 
 */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2.5rem;
    border-radius: 3rem; /* Pill shape */
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn:hover, .btn:focus {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    border-bottom: none;
}

.btn:active {
    transform: translateY(-1px);
}

/* Button ripple effect using pseudo-element */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 
 * Images & Media 
 */
.wp-block-image {
    margin: 2rem 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wp-block-image img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

/* 
 * Form Styling (Generic - required by prompt criteria)
 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-main);
    background-color: #f9fafb;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Checkboxes & Radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-accent);
    width: 1.25em;
    height: 1.25em;
    cursor: pointer;
}

/* 
 * Utility Classes from HTML
 */
.is-vertical {
    display: flex;
    flex-direction: column;
}

.is-content-justification-center {
    justify-content: center;
    align-items: center;
}

.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
}

/* 
 * Responsive Design 
 */
@media (max-width: 768px) {
    .site-content {
        padding-top: 1.5rem;
    }

    .entry-header {
        padding: 2rem 1rem;
    }

    .entry-content {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .wp-block-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 90%; /* Scale down typography slightly */
    }
}

/* 
 * Print Styles 
 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .type-page {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn, .site-header, .site-footer {
        display: none;
    }
}
