/* Page Header Widget Styles */
.gire-page-header {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #e8f4f8 0%, #CDE8F9 100%);
    overflow: visible;
    margin-bottom: 80px;
}

.gire-page-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.gire-page-header .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    gap: 40px;
}

.gire-page-header .header-text {
    flex: 1;
    max-width: 60%;
    text-align: left;
}

.gire-page-header .page-subtitle {
    color: #333;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gire-page-header .page-title {
    color: #2c5aa0;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gire-page-header .page-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.gire-page-header .page-description p {
    margin: 0;
}

.gire-page-header .header-image {
    flex-shrink: 0;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    width: 500px;
    height: 300px;
}

.gire-page-header .header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Breadcrumb Styles */
.gire-page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 3;
    margin-top: auto;
}

.gire-page-header .breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gire-page-header .breadcrumb a:hover {
    color: #2c5aa0;
}

.gire-page-header .breadcrumb-separator {
    color: #999;
    margin: 0 4px;
}

.gire-page-header .breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Pattern Overlay */
.gire-page-header .header-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232c5aa0' fill-opacity='1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gire-page-header .header-main {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .gire-page-header .header-text {
        max-width: 100%;
    }
    
    .gire-page-header .header-image {
        width: 100%;
        max-width: 400px;
        height: 250px;
        margin: 0 auto;
    }
    
    .gire-page-header .page-title {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .gire-page-header .header-content {
        padding: 60px 15px 30px 15px;
        min-height: 350px;
    }
    
    .gire-page-header .header-main {
        margin-bottom: 30px;
        gap: 20px;
    }
    
    .gire-page-header .page-title {
        margin-bottom: 15px;
    }
    
    .gire-page-header .page-subtitle {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .gire-page-header .page-description {
        font-size: 14px;
    }
    
    .gire-page-header .header-image {
        height: 200px;
        max-width: 300px;
    }
    
    .gire-page-header .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .gire-page-header {
        min-height: 300px;
        margin-bottom: 60px;
    }
    
    .gire-page-header .header-content {
        padding: 40px 10px 20px 10px;
        min-height: 300px;
    }
    
    .gire-page-header .page-title {
        line-height: 1.3;
    }
    
    .gire-page-header .page-subtitle {
        font-size: 14px;
    }
    
    .gire-page-header .header-image {
        height: 150px;
        max-width: 250px;
    }
}

/* Layout Variations */
.gire-page-header.text-only .header-text {
    max-width: 80%;
    margin: 0 auto;
}

.gire-page-header.image-only .header-main {
    justify-content: center;
}

.gire-page-header.image-only .header-text {
    max-width: 100%;
}

/* Animation */
.gire-page-header .header-text > * {
    animation: fadeInUp 0.8s ease-out;
}

.gire-page-header .header-image {
    animation: fadeInRight 0.8s ease-out;
}

.gire-page-header .breadcrumb {
    animation: fadeIn 1s ease-out;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* RTL Support */
[dir="rtl"] .gire-page-header .breadcrumb {
    direction: rtl;
}

[dir="rtl"] .gire-page-header .breadcrumb-separator {
    transform: scaleX(-1);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .gire-page-header {
        background: #fff;
        border: 2px solid #000;
    }
    
    .gire-page-header .page-title {
        color: #000;
    }
    
    .gire-page-header .page-subtitle,
    .gire-page-header .page-description {
        color: #333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gire-page-header .header-text > *,
    .gire-page-header .header-image,
    .gire-page-header .breadcrumb {
        animation: none;
    }
}
