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

:root {
    /* Color Palette - Modern Dark Theme */
    --color-bg-body: #0f172a;
    --color-bg-card: #1e293b;
    --color-bg-header: rgba(15, 23, 42, 0.95);
    
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-link: #38bdf8;
    
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-accent: #22c55e;
    --color-accent-hover: #16a34a;
    --color-accent-glow: rgba(34, 197, 94, 0.5);

    /* Typography */
    --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing & Sizes */
    --wrap-width: 1200px;
    --content-width: 800px;
    --header-height: 4.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    
    /* Effects */
    --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-glow: 0 0 20px var(--color-accent-glow);
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* =========================================
   2. Layout & Wrappers
   ========================================= */
.wrap {
    width: 100%;
    max-width: var(--wrap-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cms-content {
    max-width: var(--content-width);
    margin: 2rem auto;
    padding-bottom: 4rem;
}

/* =========================================
   3. Header Styling
   ========================================= */
header.bgall {
    background-color: var(--color-bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.header_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.custom-logo-link:hover {
    transform: scale(1.05);
}

.custom-logo {
    width: auto;
    height: 2.5rem; /* Resizing huge logo placeholder */
    display: block;
}

/* Header Login Button */
.m_but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.m_but:hover, .m_but:focus {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.m_but:active {
    transform: translateY(0);
}

/* =========================================
   4. Typography & Content
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Links within content */
.cms-content p a {
    color: var(--color-text-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.cms-content p a:hover {
    border-bottom-color: var(--color-text-link);
}

/* Lists */
ol.wp-block-list {
    counter-reset: my-counter;
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0;
}

ol.wp-block-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
}

ol.wp-block-list li::before {
    counter-increment: my-counter;
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--color-accent);
    background: rgba(34, 197, 94, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-main);
}

blockquote p {
    margin-bottom: 0;
}

/* =========================================
   5. Interactive Elements & Buttons
   ========================================= */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.btn-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition-smooth);
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(34, 197, 94, 0.6);
}

.btn:hover::after {
    opacity: 1;
}

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

.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* =========================================
   6. Images & Media
   ========================================= */
figure.wp-block-image {
    margin: 2.5rem 0;
    display: block;
}

figure.wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

figure.wp-block-image img:hover {
    transform: scale(1.01);
    filter: brightness(1.1);
}

/* =========================================
   7. Footer
   ========================================= */
footer.bgall {
    margin-top: auto;
    background-color: var(--color-bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
}

.copu {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* =========================================
   8. Form Styles (Anticipating inputs)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* =========================================
   9. Media Queries
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 4rem;
    }
    
    .wrap {
        padding: 0 1rem;
    }
    
    .m_but {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    h1 {
        margin-top: 1rem;
    }
    
    ol.wp-block-list li {
        padding-left: 2.5rem;
    }
    
    .custom-logo {
        height: 2rem;
    }

    /* Helper utility class logic from HTML */
    .hidden.md\:block {
        display: inline-flex; /* Ensure visibility on mobile if logic requires, or stick to hidden if strict */
    }
    
    /* Assuming logic means: hidden on mobile, block on md. 
       If we want to show it based on modern trends: */
    .m_but.hidden.md\:block {
        display: inline-flex; /* Overriding to keep login accessible on mobile */
    }
}

@media (max-width: 480px) {
    h1 {
        text-align: left;
    }
    
    figure.wp-block-image {
        margin: 1.5rem -1rem; /* Edge to edge on small screens */
        width: calc(100% + 2rem);
    }
    
    figure.wp-block-image img {
        border-radius: 0;
        border: none;
    }
}
