/* Page Header Widget - Minimal Structural Styles Only */
/* All visual styling managed by Elementor controls for maximum flexibility */

.ababil-page-header {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    align-items: center;
}

.ababil-page-header.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: inherit;
    background-position: inherit;
    background-size: inherit;
    background-repeat: inherit;
    background-attachment: inherit;
}

/* Video Background Structure - Minimal Base Only */
.ababil-page-header-video,
.ababil-page-header-video-wrapper {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ababil-page-header-video-wrapper {
    pointer-events: none;
}

.ababil-page-header-video-wrapper iframe {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    border: none;
}

.ababil-page-header-video {
    display: block;
    max-width: none;
}

/* Overlay Structure */
.ababil-page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Content Structure */
.ababil-page-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.ababil-page-header-content-inner {
    position: relative;
    width: 100%;
}

/* Segment Structure */
.ababil-page-header-segment {
    position: relative;
    z-index: 1;
}

.ababil-page-header-segment.ababil-animated-segment {
    opacity: 0;
    visibility: hidden;
}

.ababil-page-header-segment.ababil-animated-segment.ababil-animated {
    opacity: 1;
    visibility: visible;
}

/* Breadcrumb Structure */
.ababil-page-header-breadcrumb-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ababil-breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.ababil-breadcrumb-item a {
    text-decoration: none;
}

.ababil-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
}

/* Divider Structure - COMPLETELY REVISED */
.ababil-page-header-divider {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    box-sizing: border-box;
    min-height: auto;
    overflow: hidden;
}

.ababil-page-header-divider > div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Line Dividers */
.ababil-page-header-divider-line {
    display: block;
    width: 100px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 0;
}

.ababil-page-header-divider-line.simple {
    background-color: currentColor;
}

.ababil-page-header-divider-line.dotted {
    background: none;
    border-top: 2px dotted currentColor;
    height: 0;
}

.ababil-page-header-divider-line.dashed {
    background: none;
    border-top: 2px dashed currentColor;
    height: 0;
}

/* Icon with Lines Layout */
.ababil-page-header-divider-icon-with-lines {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: center;
}

.ababil-page-header-divider-icon-with-lines .ababil-page-header-divider-line {
    flex: 1;
    max-width: 100px;
}

.ababil-page-header-divider-icon-with-lines .ababil-page-header-divider-icon {
    flex-shrink: 0;
}

/* Container Background Support */
.ababil-page-header-divider.has-background {
    position: relative;
}

.ababil-page-header-divider.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Full Width Background Support */
.ababil-page-header-divider[style*="background"] {
    background-clip: padding-box;
}

/* Ensure proper stacking for complex backgrounds */
.ababil-page-header-divider > * {
    position: relative;
}

/* Large Container Support */
.ababil-page-header-divider[style*="width: 100"] {
    max-width: 100%;
}

.ababil-page-header-divider[style*="vw"] {
    max-width: 100vw;
}

/* Icon, Image, Text, Pattern Styles */
.ababil-page-header-divider-icon,
.ababil-page-header-divider-image,
.ababil-page-header-divider-text,
.ababil-page-header-divider-pattern {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 24px;
}

.ababil-page-header-divider-image img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100px;
}

/* Spacer */
.ababil-page-header-divider-spacer {
    width: 100%;
    height: 40px;
    display: block;
}

/* Pattern Specific Styles */
.ababil-page-header-divider-pattern {
    font-family: inherit;
    font-weight: normal;
    letter-spacing: 0.2em;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .ababil-page-header-divider {
        margin: 15px 0;
        min-width: 100px;
    }
    
    .ababil-page-header-divider-line {
        width: 80px;
    }
    
    .ababil-page-header-divider-icon-with-lines {
        gap: 15px;
    }
    
    .ababil-page-header-divider-icon-with-lines .ababil-page-header-divider-line {
        max-width: 60px;
    }
    
    .ababil-page-header-divider-icon,
    .ababil-page-header-divider-text,
    .ababil-page-header-divider-pattern {
        font-size: 20px;
    }
    
    .ababil-page-header-divider-image img {
        width: 80px;
    }
    
    .ababil-page-header-divider-spacer {
        height: 30px;
    }
    
    .ababil-page-header-divider[style*="width"] {
        min-width: 50px;
        max-width: 100%;
    }
}

/* Device-specific visibility classes */
@media (min-width: 1025px) {
    .ababil-hide-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ababil-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .ababil-hide-mobile {
        display: none !important;
    }
}

/* Show only classes */
@media (max-width: 1024px) {
    .ababil-show-desktop-only {
        display: none !important;
    }
}

@media (min-width: 768px), (max-width: 767px) {
    .ababil-show-tablet-only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .ababil-show-mobile-only {
        display: none !important;
    }
}

/* Responsive Structure Only */
@media (max-width: 767px) {
    /* Mobile specific styles if needed */
}

/* Editor specific fixes */
.elementor-editor-active .ababil-page-header-segment {
    opacity: 1 !important;
    visibility: visible !important;
}
