
/* =========================================
   1. Reset & Variables (Modern Foundation)
   ========================================= */
:root {
    /* Color Palette - Modern Sports/Tech Theme */
    --color-primary: #1a56db; /* Vivid Blue */
    --color-primary-dark: #1e3a8a; /* Deep Blue */
    --color-secondary: #0ea5e9; /* Sky Blue */
    --color-accent: #10b981; /* Success Green for CTAs */
    --color-accent-hover: #059669;
    --color-danger: #ef4444; /* Red/Fire */
    
    /* Typography & Backgrounds */
    --color-text-main: #1f2937;
    --color-text-light: #6b7280;
    --color-text-inverse: #ffffff;
    --color-bg-body: #f3f4f6;
    --color-bg-card: #ffffff;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --content-width: 800px;
    --header-height: 80px;
    
    /* 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-neon: 0 0 15px rgba(16, 185, 129, 0.5);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   2. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 5px solid var(--color-primary);
    padding-left: 1rem;
    margin-top: 3rem;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-secondary);
}

strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* =========================================
   3. Layout & Structure
   ========================================= */
.wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.cms-content {
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: var(--content-width); /* Reading comfort */
}

/* =========================================
   4. Header Styles
   ========================================= */
header.bgall {
    background: var(--color-bg-card);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.custom-logo {
    width: auto;
    height: 40px; /* Force fix for width=1 height=1 in HTML */
    min-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Header Login Button */
.m_but {
    background-color: var(--color-primary);
    color: var(--color-text-inverse) !important;
    padding: 0.6em 1.5em;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.m_but:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tailwind-style utilities helper */
.ml-auto { margin-left: auto; }
.hidden { display: none; }
@media (min-width: 768px) {
    .md\:block { display: block; }
}

/* =========================================
   5. Content Components
   ========================================= */

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

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

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

/* Lists */
.wp-block-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.wp-block-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.wp-block-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.5rem;
}

/* =========================================
   6. Buttons & CTAs (Main Interaction)
   ========================================= */
.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-inverse) !important;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
}

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

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

/* Infinite Pulse Animation for Main CTA */
.btn-size-big {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* =========================================
   7. Form Elements (Styled generically)
   ========================================= */
/* Although specific forms aren't in the snippet, 
   these styles ensure potential inputs match the theme */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-base);
    background: #f9fafb;
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.2);
    background: #fff;
}

/* =========================================
   8. Footer
   ========================================= */
footer.bgall {
    background-color: #111827; /* Dark footer */
    color: #9ca3af;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.copu {
    font-size: 0.875rem;
    font-weight: 500;
}

/* =========================================
   9. Responsive Design & Mobile Adaptations
   ========================================= */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --spacing-md: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-top: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        padding-left: 0.5rem;
        border-width: 3px;
    }
    
    .cms-content {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .header_list {
        padding: 0 0.5rem;
    }

    /* Adjust button for mobile */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .wp-block-buttons {
        width: 100%;
    }
    
    /* Ensure header button is visible on mobile if needed or styled specifically */
    .m_but.hidden {
        /* Override the 'hidden' class if we want it visible on mobile, 
           otherwise keep standard behavior */
        display: none; 
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .cms-content {
        max-width: 90%;
    }
}

/* =========================================
   10. Utility & Helper Classes
   ========================================= */
/* Email links inside content */
a[href^="mailto:"] {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 600;
    margin-top: 0.5rem;
}

a[href^="mailto:"]:hover {
    text-decoration: underline;
}

/* Specific ID overrides if needed for spacing */
#h2_1, #h2_2, #h2_3, #h2_4, #h2_5, #h2_6, #h2_7, #h2_8, #h2_9, #h2_10, #h2_11 {
    scroll-margin-top: calc(var(--header-height) + 2rem);
}
