/* Custom primary color override */
:root {
    --color-primary: #FD4F18 !important;
    --color-primary-10: rgb(255, 247.5, 245.4);
    --color-primary-25: rgb(255, 239.4, 230.1);
    --color-primary-50: rgb(255, 222.3, 204.3);
    --color-primary-100: rgb(255, 189, 163.2);
    --color-primary-200: rgb(255, 135.6, 81.6);
    --color-primary-300: rgb(255, 82.2, 0);
    --color-primary-400: rgb(253, 66.3, 12.6);
    --color-primary-500: #FD4F18 !important;
    --color-primary-600: rgb(202.3, 63.75, 19.2);
    --color-primary-700: rgb(151.725, 47.8125, 14.4);
    --color-primary-800: rgb(101.15, 31.875, 9.6);
    --color-primary-900: rgb(50.575, 15.9375, 4.8);
}

/* Ensure proper centering - match template structure */
.container.max-w-xl {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px;
    padding-right: 16px;
}

/* Ensure sections are properly centered */
.section-outer {
    width: 100%;
}

.section-inner {
    width: 100%;
}

/* Fix navbar centering */
.uc-navbar-center {
    justify-content: center;
}

/* Ensure content wrapper is centered */
#wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Top ticker bar uses primary color */
.uc-top-navbar.bg-primary-600 {
    background-color: var(--color-primary) !important;
}

/* Navbar structure */
.uc-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uc-navbar-left,
.uc-navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uc-navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Error pages styling */
.error-code h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

.error-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error page buttons */
.error-content .btn {
    transition: all 0.3s ease;
}

.error-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 79, 24, 0.3);
}

/* Ensure main content has proper spacing from footer */
main {
    min-height: calc(100vh - 200px);
    padding-bottom: 4rem;
}

/* Post content spacing */
.post-content {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    max-width: 100%;
    text-align: center;
}

.post-content-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Post content paragraphs */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

/* Post content images */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Post content headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    text-align: center;
    margin: 2rem auto 1rem;
    max-width: 700px;
    line-height: 1.4;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content h5 { font-size: 1.1rem; }
.post-content h6 { font-size: 1rem; }

/* Post content lists */
.post-content ul,
.post-content ol {
    text-align: left;
    margin: 1.5rem auto;
    max-width: 700px;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Post content blockquotes */
.post-content blockquote {
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    max-width: 700px;
    border-left: 4px solid var(--color-primary);
    background-color: rgba(253, 79, 24, 0.05);
    font-style: italic;
    text-align: left;
}

/* Post content links */
.post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--color-primary-600);
}

/* Post content tables */
.post-content table {
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    border-collapse: collapse;
    text-align: left;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.post-content table th {
    background-color: rgba(253, 79, 24, 0.1);
    font-weight: bold;
}

/* Post content code blocks */
.post-content pre {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow-x: auto;
    text-align: left;
}

.post-content code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Post content iframes/videos */
.post-content iframe,
.post-content video,
.post-content embed {
    max-width: 100%;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
}

/* Post content divs and sections */
.post-content div {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Post content strong and emphasis */
.post-content strong {
    font-weight: 700;
}

.post-content em {
    font-style: italic;
}

/* Post content horizontal rules */
.post-content hr {
    max-width: 700px;
    margin: 2rem auto;
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

/* Post article container spacing */
.post.type-post {
    margin-bottom: 6rem;
}

/* Ensure post container is centered */
.container.max-w-800px {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ensure footer doesn't overlap content */
.uc-footer {
    margin-top: 6rem;
    padding-top: 3rem;
}

/* Container spacing for post pages */
.container.container-full {
    padding-bottom: 4rem;
}

