:root {
    /* Brand Colors alxarafe.com */
    --alx-primary: #2235dd;
    --alx-secondary: #05060f;
    --alx-bg: #ffffff;
    --alx-text: #05060f;
    --alx-border: #f1f1f2;
    --alx-muted: #6b7280;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--alx-text);
    background-color: var(--alx-bg);
    line-height: 1.7;
}

/* Main Header Styling */
.app-header {
    background: #fff;
    border-bottom: 1px solid var(--alx-border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--alx-secondary);
    letter-spacing: -0.02em;
}

.app-header .nav-link {
    color: var(--alx-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem !important;
}

.app-header .nav-link:hover {
    color: var(--alx-primary);
}

.auth-mode .sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid var(--alx-border);
    min-width: 250px;
    padding: 2rem 0;
}

.auth-mode .sidebar .nav-link {
    padding: 0.75rem 1.5rem;
    color: var(--alx-muted);
    font-weight: 500;
}

.auth-mode .sidebar .nav-link:hover {
    color: var(--alx-primary);
    background: rgba(34, 53, 221, 0.05);
}

/* Social & Tools */
.header-tools .social-link {
    font-size: 1.2rem;
    color: var(--alx-muted);
    transition: color 0.2s ease;
}

.header-tools .social-link:hover {
    color: var(--alx-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top, #fff 0%, var(--alx-bg) 100%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--alx-text);
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #475569;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    font-weight: 400;
}

/* Buttons */

.btn-outline-alx {
    background: transparent;
    border: 2px solid var(--alx-primary);
    color: var(--alx-primary);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-outline-alx:hover {
    background-color: var(--alx-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Blog Post Specifics */
.blog-post {
    max-width: 900px;
    margin: 0 auto;
}

.post-content {
    color: #334155;
}

/* Feature Grid and Items (Post Content Layout) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
    margin: 3.5rem 0;
    width: 100%;
}

.feature-item {
    min-width: 0;
    width: 100%;
}

/* Override Bootstrap col class if present to favor grid behavior */
.feature-grid .feature-item[class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
}

.feature-item img {
    margin: 0 auto !important;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

@media (max-width: 768px) {
    .feature-grid {
        gap: 1.5rem;
    }
    .feature-item {
        flex: 1 1 100% !important;
    }
}

/* Administrative & Form UI Improvements */
.alxarafe-resource-edit {
    padding: 0 1rem;
}

.card,
.panel {
    background: #fff;
    border: 1px solid var(--alx-border);
    border-radius: 1rem;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.card-header,
.panel-heading {
    border-bottom: 1px solid var(--alx-border);
    padding: 1.25rem 1.5rem;
    font-weight: 800;
    color: var(--alx-secondary);
}

.card-body,
.panel-body {
    padding: 1.75rem;
}

.form-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--alx-muted);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    padding: 0.7rem 1.1rem;
    font-size: 0.95rem;
    border-color: var(--alx-border);
    border-radius: 0.75rem;
    color: var(--alx-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--alx-primary);
    box-shadow: 0 0 0 4px rgba(34, 53, 221, 0.1);
}

.input-group-text {
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border-color: var(--alx-border);
    padding: 0.7rem 1rem;
}

.input-group>.form-control,
.input-group>.form-select {
    border-radius: 0.75rem;
}