:root {
    --primary-color: #004590;
    --secondary-color: #003399;
    --hover-color: #cc0000;
    --background-color: #E9C893;
    --accent-color: #0052cc;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --neutral-light: #f8f9fa;
    --neutral-border: #e9ecef;
    --border-light: #eeeeee;
    --shadow-light: 0 0.25rem 0.5rem rgba(0,0,0,0.1);
    --shadow-medium: 0 0.375rem 0.9375rem rgba(0,0,0,0.15);
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-size: 1rem;
}

.site-content {
    padding: 0 !important;
}

.elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 81.25rem;
    margin-left: auto;
    margin-right: auto;
}

body:not(.home) {
    background-color: var(--background-color);
}

body:not(.home) .site-content,
body:not(.home) .content-area,
body:not(.home) .content,
body:not(.home) #primary {
    background: #fff;
    
    border-radius: 0.3125rem;
    padding: 0.0125rem;
    margin: 0.25rem auto;
    max-width: 99rem;
    box-shadow: var(--shadow-light);
    display: flex;
    gap: 0.05rem;
}

body:not(.home) #primary {
    flex: 3;
}

body:not(.home) .sidebar,
body:not(.home) #secondary {
    background: #fff;
    border: 0.1875rem solid var(--primary-color);
    border-radius: 0.3125rem;
    padding: .225rem;
    box-shadow: var(--shadow-light);
    flex: 1;
}

body:not(.home) .sidebar .widget,
body:not(.home) #secondary .widget,
body:not(.home) .post,
body:not(.home) article {
    margin-bottom: 0.15rem;
    border-bottom: 0.0625rem solid var(--neutral-border);
    padding-bottom: 0.02125rem;
}

body:not(.home) .post:last-child,
body:not(.home) article:last-child {
    border-bottom: none;
}

body:not(.home) a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

body:not(.home) a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

body:not(.home) h1.entry-title,
body:not(.home) h2.entry-title,
body:not(.home) h1.page-title {
    margin-top: 0;
    padding: 0.025rem 0;
    border-bottom: 0.125rem solid var(--background-color);
    line-height: 1.2;
}

body:not(.home) .pagination,
body:not(.home) .nav-links {
    margin-top: 2.25rem;
    text-align: center;
}

body:not(.home) .pagination a,
body:not(.home) .nav-links a {
    background: #fff;
    border: 0.0625rem solid var(--background-color);
    padding: 0.375rem 0.75rem;
    margin: 0 0.1875rem;
    border-radius: 0.25rem;
    text-decoration: none;
    color: var(--secondary-color);
    line-height: 1.5;
}

body:not(.home) .pagination a:hover,
body:not(.home) .nav-links a:hover {
    background: var(--background-color);
    color: #fff;
}

.copy-share-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--success-color);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.9375rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: none;
    line-height: 1.5;
}

.copy-share-button:hover {
    background-color: #218838;
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-medium);
    will-change: transform, opacity;
}

.copy-success-message {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--success-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: none;
    z-index: 1100;
    box-shadow: var(--shadow-medium);
    font-weight: 500;
}

.popup-body a {
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.custom-recent-posts-item {
    padding: 0.1rem;
    transition: background-color 0.3s;
    color: #000;
}

.custom-recent-posts-item:not(:last-child) {
    border-bottom: 0.03125rem solid var(--neutral-border);
}

.custom-recent-posts-item:hover {
    background-color: #e0e0e0;
}

.custom-recent-posts .post-indicator {
    margin-right: 0.125rem;
    font-size: 1.275rem;
    color: #000;
}

.custom-recent-posts-item a {
    color: #0000ff;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 700;
    margin: 2px;
    padding: 2px;
}

.custom-excerpt,
.custom-updated {
    color: #000;
    font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
    font-weight: 700;
    margin-left: 0.975rem;
}

.single-post .elementor-element.elementor-widget-heading,
.single-post .elementor-widget-container {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.single-post .elementor-widget-container h2
.single-post .elementor .elementor-heading-title,
.single-post .entry-content h2 {
    font-family: inherit !important;
    font-size: clamp(1.2rem, 3vw, 1.4rem) !important;
    line-height: 1.5 !important;
    padding: 0.02rem 0.6rem !important;
    background: linear-gradient(-45deg, #004998, #0066cc, #0088ff, #004998) !important;
    background-size: 300% !important;
    border-radius: 0.625rem !important;
    color: #fff !important;
    box-shadow: var(--shadow-light) !important;
    display: block !important;
    width: 100% !important;
    margin: 0.3rem 0 !important;
    text-align: center !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.2) !important;
    animation: gradientFlow 15s ease infinite !important;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.single-post .elementor-widget-container h2:hover,
.single-post .elementor .elementor-heading-title:hover {
    transform: translateY(-0.125rem) !important;
    box-shadow: var(--shadow-medium) !important;
}

.single-post .elementor-widget-container h2::before,
.single-post .elementor-widget-container h2::after {
    display: none !important;
}

.single-post .elementor-widget:not(:last-child) {
    margin-bottom: 0 !important;
}

.main-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.button-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .3rem;
    padding: .25rem;
    width: 100%;
    margin: 0 auto;
}

.custom-button {
    color: #fff !important;
    padding: 0.525rem 1.25rem;
    border-radius: 0.425rem;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 1.4125rem;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    line-height: 1.0;
}

.custom-button .icon {
    font-size: 2.25rem;
}

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

.custom-button:hover:before {
    left: 100%;
}

.custom-button.red {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.custom-button.green {
    background: linear-gradient(135deg, #1fa219, #167c12);
}

.custom-button.black {
    background: linear-gradient(135deg, #333333, #000000);
}

.custom-button:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-medium);
    will-change: transform, opacity;
}

.job-button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    padding: 0.025rem;
    width: 100%;
    margin: 0 auto;
}

.job-button {
    color: #fff;
    padding: 0.2rem;
    border-radius: 0.5625rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.job-button .content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1;
}

.job-button .title {
    font-size: clamp(1rem, 2vw, 0.85rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0;
}

.job-button .action {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.03125rem;
    font-weight: 400;
}

.job-button.olive {
    background: linear-gradient(135deg, #808000, #5a5a00);
}

.job-button.blue {
    background: linear-gradient(135deg, #00B0CD, #00008b);
}

.job-button.orange {
    background: linear-gradient(135deg, #FF6600, #cc5200);
}

.job-button.maroon {
    background: linear-gradient(135deg, #8000D0, #4d0000);
}

.job-button.red {
    background: linear-gradient(135deg, #FF0000, #cc0000);
}

.job-button.green {
    background: linear-gradient(135deg, #006400, #004d00);
}

.job-button.pink {
    background: linear-gradient(135deg, #FF1493, #cc1077);
}

.job-button.skyblue {
    background: linear-gradient(135deg, #1E90FF, #0066cc);
}

.job-button:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-medium);
    will-change: transform, opacity;
}

.job-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0), rgba(255,255,255,0.1), rgba(255,255,255,0));
    transform: rotate(45deg);
    transition: 0.5s all;
}

.job-button:hover::after {
    left: 100%;
    top: 100%;
}

.popup-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 0.625rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(0.3125rem);
}

.popup-modal[aria-hidden="false"] .popup-content {
    animation: popupOpen 0.3s ease forwards;
}

.popup-modal[aria-hidden="true"] .popup-content {
    animation: popupClose 0.3s ease forwards;
    will-change: transform, opacity;
}

@keyframes popupOpen {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes popupClose {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.95); opacity: 0; }
}

.popup-content {
    width: 100%;
    max-width: 41.25rem;
    max-height: 85vh;
    background: #fff;
    border-radius: .9375rem;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.popup-header {
    padding: 1.125rem;
    background: var(--accent-color);
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    color: #fff;
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 600;
    line-height: 1.5;
}

.close-button {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: none;
    font-size: 2.1875rem;
    cursor: pointer;
    border-radius: 0.625rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
}

.popup-body {
    padding: 1.225rem;
    overflow-y: auto;
    max-height: calc(90vh - 8.125rem);
}

.post-item {
    padding: 0.25rem;
    margin-bottom: 0.625rem;
    border-radius: 0.5rem;
    background: var(--neutral-light);
    border: 0.0625rem solid var(--neutral-border);
    transition: 0.2s;
}

.post-item:hover {
    transform: translateX(0.3125rem);
    border-left: 0.1875rem solid var(--accent-color);
}

.post-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3125rem;
    line-height: 1.5;
}

.post-title:hover {
    color: #0077ff;
}

.last-date {
    color: var(--danger-color);
    font-size: 1.075rem;
    display: flex;
    align-items: center;
    gap: 1.3125rem;
    line-height: .02;
}

.last-date::before {
    content: "•";
}

.popup-footer {
    padding: 5px;
    background: var(--neutral-light);
    border-top: 0.0625rem solid var(--neutral-border);
    border-radius: 0 0 0.75rem 0.75rem;
}

.home-button {
    width: 100%;
    padding: 1.3125rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.home-button:hover {
    background: #0077ff;
}

.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,255);
    border-top: 0.0625rem solid var(--border-light);
    z-index: 1000;
    padding: 0.025rem 0;
    will-change: transform;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: clamp(0.6rem, 1.5vw, 0.6875rem);
    gap: 0.125rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav-item i {
    font-size: 1.25rem;
    color: #000;
}

.nav-item.active {
    color: #0066ff;
}

.nav-item.active i {
    color: #0066ff;
}

@media (max-width: 1024px) {
    .single-post .elementor-widget-container h2,
    .single-post .elementor .elementor-heading-title {
        font-size: clamp(1.1rem, 2.5vw, 1.2rem) !important;
    }

    .job-button-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .custom-button,
    .job-button,
    .nav-item {
        font-size: clamp(0.9rem, 2vw, 0.95rem);
    }

    .job-button .title {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
    }

    .job-button .action {
        font-size: clamp(0.7rem, 1.5vw, 0.8125rem);
    }
}

@media (max-width: 768px) {
    body:not(.home) .site-content,
    body:not(.home) .content-area,
    body:not(.home) .content,
    body:not(.home) #primary {
        flex-direction: column;
        padding: 0.25rem;
        margin: 0.3125rem;
    }

    body:not(.home) #primary,
    body:not(.home) .sidebar,
    body:not(.home) #secondary {
        flex: unset;
        width: 100%;
        margin: 0;
    }

    body:not(.home) h1.entry-title {
        font-size: clamp(0.9rem, 2vw, 0.95rem);
        text-align: left;
    }

    body:not(.home) p {
        font-size: clamp(0.9rem, 2vw, 0.95rem);
        text-align: left;
    }

    .single-post .elementor-widget-container h2,
    .single-post .elementor .elementor-heading-title {
        font-size: clamp(1.1rem, 2.5vw, 1.2rem) !important;
        padding: 0.15rem 0.4rem !important;
    }

    .job-button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .job-button .title {
        font-size: clamp(0.7rem,2rem);
    }

    .job-button .action {
        font-size: clamp(0.8rem, 10.5vw, 0.65rem);
    }

    body,
    .custom-button,
    .job-button,
    .nav-item {
        font-size: clamp(0.9rem, 2vw, 0.9375rem);
    }
}

@media (min-width: 992px) {
    .mobile-footer {
        display: none !important;
    }
}