/* Grid and Row Container Styles */
.om-pb-frontend-layout {
    width: 100%;
    box-sizing: border-box;
}

.om-pb-row {
    width: 100%;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.om-pb-row-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    padding: 0 15px;
}

/* Columns layouts */
.om-pb-column {
    box-sizing: border-box;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
}

.om-pb-col-12 { width: 100%; }
.om-pb-col-9  { width: 75%; }
.om-pb-col-8  { width: 66.666%; }
.om-pb-col-6  { width: 50%; }
.om-pb-col-4  { width: 33.333%; }
.om-pb-col-3  { width: 25%; }

/* Mobile collapse */
@media (max-width: 767px) {
    .om-pb-column {
        width: 100% !important;
    }
    .om-pb-row-inner {
        padding: 0 10px;
    }
}

/* Element Base margins */
.om-pb-element {
    margin-bottom: 20px;
    box-sizing: border-box;
}

.om-pb-element:last-child {
    margin-bottom: 0;
}

/* Heading Element */
.om-pb-heading {
    margin-top: 0;
    font-weight: 800;
    line-height: 1.2;
}

/* Text Block Element */
.om-pb-text-block {
    line-height: 1.65;
    color: inherit;
}

.om-pb-text-block p {
    margin: 0 0 15px 0;
}

.om-pb-text-block p:last-child {
    margin-bottom: 0;
}

/* Button Element */
.om-pb-button-wrapper {
    width: 100%;
}

.om-pb-button {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    box-sizing: border-box;
}

.om-pb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    filter: brightness(110%);
}

.om-pb-button:active {
    transform: translateY(0);
}

/* Image Element */
.om-pb-image-wrapper {
    width: 100%;
}

.om-pb-image {
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Alert Boxes Element */
.om-pb-alert {
    padding: 15px 20px;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.om-pb-alert-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.om-pb-alert-success {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.om-pb-alert-warning {
    background-color: #fffbef;
    border-color: #eab308;
    color: #854d0e;
}

.om-pb-alert-danger {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Accordion Element */
.om-pb-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.om-pb-accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.om-pb-accordion-item:last-child {
    border-bottom: none;
}

.om-pb-accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
    text-align: left;
    outline: none;
}

.om-pb-accordion-header:hover {
    background: #f1f5f9;
}

.om-pb-accordion-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.om-pb-accordion-icon {
    font-size: 16px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.om-pb-accordion-item.active .om-pb-accordion-icon {
    transform: rotate(180deg);
}

.om-pb-accordion-content {
    padding: 20px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    border-top: 1px solid #e2e8f0;
}

/* Tabs Element */
.om-pb-tabs {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.om-pb-tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.om-pb-tab-link {
    background: none;
    border: none;
    border-right: 1px solid #e2e8f0;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    transition: all 0.15s ease;
    outline: none;
    white-space: nowrap;
}

.om-pb-tab-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.om-pb-tab-link.active {
    background: #ffffff;
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.om-pb-tab-panel {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

/* Posts Grid Element */
.om-pb-posts-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    box-sizing: border-box;
}

.om-pb-post-card {
    box-sizing: border-box;
    padding: 0;
    margin: 0 15px 30px 15px;
    display: flex;
    flex-direction: column;
}

/* Columns classes for post cards */
.om-pb-posts-cols-1 .om-pb-post-card { width: calc(100% - 30px); }
.om-pb-posts-cols-2 .om-pb-post-card { width: calc(50% - 30px); }
.om-pb-posts-cols-3 .om-pb-post-card { width: calc(33.333% - 30px); }
.om-pb-posts-cols-4 .om-pb-post-card { width: calc(25% - 30px); }

@media (max-width: 991px) {
    .om-pb-posts-cols-3 .om-pb-post-card, 
    .om-pb-posts-cols-4 .om-pb-post-card {
        width: calc(50% - 30px);
    }
}

@media (max-width: 767px) {
    .om-pb-posts-cols-2 .om-pb-post-card,
    .om-pb-posts-cols-3 .om-pb-post-card, 
    .om-pb-posts-cols-4 .om-pb-post-card {
        width: calc(100% - 30px);
    }
}

/* Post Card Content Styles */
.om-pb-post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.om-pb-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.om-pb-post-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8fafc;
}

.om-pb-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.om-pb-post-card:hover .om-pb-post-thumbnail img {
    transform: scale(1.05);
}

.om-pb-post-placeholder-box {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
}

.om-pb-post-placeholder-box .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.om-pb-post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.om-pb-post-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.om-pb-post-title a {
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.om-pb-post-title a:hover {
    color: #3b82f6;
}

.om-pb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.om-pb-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.om-pb-post-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.om-pb-post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 15px;
    flex-grow: 1;
}

.om-pb-post-excerpt p {
    margin: 0;
}

.om-pb-post-read-more {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none !important;
    transition: color 0.15s ease;
    align-self: flex-start;
}

.om-pb-post-read-more:hover {
    color: #1d4ed8;
}

.om-pb-posts-no-posts {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-weight: 500;
    width: 100%;
    margin: 0 15px;
}

/* Animation Keyframes */
@keyframes omPbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes omPbSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes omPbSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes omPbZoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes omPbFadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes omPbFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Base states for Scroll Reveal */
.om-pb-scroll-reveal {
    opacity: 0;
    visibility: hidden;
    animation-play-state: paused;
}

.om-pb-scroll-reveal.om-pb-reveal-active {
    visibility: visible;
    animation-play-state: running;
}

/* Apply Immediate Animations */
.om-pb-animate-fade-in { animation: omPbFadeIn 600ms ease forwards; }
.om-pb-animate-slide-up { animation: omPbSlideUp 600ms ease forwards; }
.om-pb-animate-slide-down { animation: omPbSlideDown 600ms ease forwards; }
.om-pb-animate-zoom-in { animation: omPbZoomIn 600ms ease forwards; }
.om-pb-animate-fade-in-left { animation: omPbFadeInLeft 600ms ease forwards; }
.om-pb-animate-fade-in-right { animation: omPbFadeInRight 600ms ease forwards; }

/* Apply Scroll Reveal Animations (only run when om-pb-reveal-active class is added) */
.om-pb-scroll-reveal.om-pb-animate-fade-in { animation: none; }
.om-pb-scroll-reveal.om-pb-animate-slide-up { animation: none; }
.om-pb-scroll-reveal.om-pb-animate-slide-down { animation: none; }
.om-pb-scroll-reveal.om-pb-animate-zoom-in { animation: none; }
.om-pb-scroll-reveal.om-pb-animate-fade-in-left { animation: none; }
.om-pb-scroll-reveal.om-pb-animate-fade-in-right { animation: none; }

.om-pb-scroll-reveal.om-pb-animate-fade-in.om-pb-reveal-active { animation: omPbFadeIn 600ms ease forwards; }
.om-pb-scroll-reveal.om-pb-animate-slide-up.om-pb-reveal-active { animation: omPbSlideUp 600ms ease forwards; }
.om-pb-scroll-reveal.om-pb-animate-slide-down.om-pb-reveal-active { animation: omPbSlideDown 600ms ease forwards; }
.om-pb-scroll-reveal.om-pb-animate-zoom-in.om-pb-reveal-active { animation: omPbZoomIn 600ms ease forwards; }
.om-pb-scroll-reveal.om-pb-animate-fade-in-left.om-pb-reveal-active { animation: omPbFadeInLeft 600ms ease forwards; }
.om-pb-scroll-reveal.om-pb-animate-fade-in-right.om-pb-reveal-active { animation: omPbFadeInRight 600ms ease forwards; }

/* Text Hover Effects */
.om-pb-hover-color-shift {
    transition: color 0.3s ease;
}
.om-pb-hover-color-shift:hover {
    color: #3b82f6 !important;
}

.om-pb-hover-grow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.om-pb-hover-grow:hover {
    transform: scale(1.03);
}

.om-pb-hover-underline-slide {
    position: relative;
    display: inline-block;
}
.om-pb-hover-underline-slide::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.om-pb-hover-underline-slide:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Image Hover Effects */
.om-pb-hover-zoom {
    overflow: hidden;
}
.om-pb-hover-zoom img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.om-pb-hover-zoom:hover img {
    transform: scale(1.05);
}

.om-pb-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.om-pb-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.om-pb-hover-grayscale img {
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}
.om-pb-hover-grayscale:hover img {
    filter: grayscale(0%);
}

.om-pb-hover-blur img {
    filter: blur(3px);
    transition: filter 0.4s ease;
}
.om-pb-hover-blur:hover img {
    filter: blur(0px);
}

/* Post Card Styles for None/Transparent Background Elements */
.om-pb-posts-grid-bg-none .om-pb-post-card,
.om-pb-posts-grid-bg-transparent .om-pb-post-card {
    background: transparent;
    border: none;
    box-shadow: none;
}
.om-pb-posts-grid-bg-none .om-pb-post-card:hover,
.om-pb-posts-grid-bg-transparent .om-pb-post-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}
.om-pb-posts-grid-bg-none .om-pb-post-card-content,
.om-pb-posts-grid-bg-transparent .om-pb-post-card-content {
    padding: 15px 0;
}
.om-pb-posts-grid-bg-none .om-pb-post-thumbnail,
.om-pb-posts-grid-bg-transparent .om-pb-post-thumbnail {
    border-radius: 6px;
}

