/* ========================================
   Ontoit Filters Plugin Styles
   Version: 1.0.0
   ======================================== */

/* ========================================
   Project Filters Styling
   ======================================== */

.project-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.project-filters .selectpicker-bs {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #555;
    min-width: 140px;
    height: 38px;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    font-family: "Work Sans";
}

.project-filters .selectpicker-bs:hover {
    border-color: #aaa;
}

.project-filters .selectpicker-bs:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 3px rgba(0, 124, 186, 0.3);
}

.project-filters .btn.clear-filters {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    height: 38px;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.project-filters .btn.clear-filters:hover {
    background: #e9ecef;
    border-color: #aaa;
    color: #333;
}

.project-filters .btn.clear-filters:active {
    background: #dee2e6;
    transform: translateY(1px);
}

/* ========================================
   Project Archive Layout
   ======================================== */

.ontoit-project-archive {
    width: 100%;
}

.ontoit-project-archive .inner-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ontoit-project-archive .archive_header {
    text-align: center;
    padding: 50px 0;
}

.ontoit-project-archive .archive_header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.ontoit-project-archive .projects-banner {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

.ontoit-project-archive .projects-banner h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.ontoit-project-archive .key-sectors.project-sector {
    margin-bottom: 40px;
}

.ontoit-project-archive .content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Project Cards Grid
   ======================================== */

.archive__results.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

.project-card {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .project-card {
        width: calc(50% - 10px);
    }
}

@media (min-width: 992px) {
    .project-card {
        width: calc(33.333333% - 13.333px);
    }
}

.project-item {
    background: transparent;
    overflow: hidden;
    height: 360px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {
    .project-item {
        height: 330px;
    }
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.project-image:hover img {
    filter: brightness(0.7);
}

.project-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h5 {
    margin: 0 0 2px 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4rem;
}

.project-content h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-content h5 a:hover {
    color: #007cba;
}

.project-summary {
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
    flex-grow: 1;
    font-size: 0.85rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-meta {
    margin-top: auto;
    padding-top: 2px;
}

@media (max-width: 767px) {
    .project-meta {
        margin-top: 0;
    }
}

.project-meta .meta-item {
    margin-bottom: 1px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

.project-meta .meta-item strong {
    color: #333;
}

/* ========================================
   Project Content Display
   ======================================== */

.ontoit-project-content {
    width: 100%;
}

.ontoit-project-content .inner-center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ontoit-project-content .intro-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.ontoit-project-content .intro-section .left {
    flex: 2;
}

.ontoit-project-content .intro-section .right {
    flex: 1;
    padding-left: 10px;
}

.ontoit-project-content .quote h3 {
    font-size: 1.5rem;
    color: #007cba;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ontoit-project-content .intro-text {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.ontoit-project-content .intro-text.no-lead {
    font-size: 1rem;
}

/* ========================================
   People Content Styling
   ======================================== */

.ontoit-project-content .people {
    padding: 40px 0;
}

.ontoit-project-content .people .left h1 {
    font-size: 2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 5px;
}

.ontoit-project-content .people .text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ontoit-project-content .people .right img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ontoit-project-content .social_icons {
    margin-top: 20px;
}

.ontoit-project-content .social_icons .icon_link {
    display: inline-block;
    padding-right: 15px;
}

.ontoit-project-content .social_icons .icon_link a {
    color: #007cba;
    transition: color 0.3s ease;
}

.ontoit-project-content .social_icons .icon_link a:hover {
    color: #005a87;
}

/* ========================================
   Project Images
   ======================================== */

.ontoit-project-content .image-0.event {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ontoit-project-content .secondary-image {
    width: 48%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ontoit-project-content .secondary-image.odd {
    float: left;
    margin-right: 4%;
}

.ontoit-project-content .secondary-image.even {
    float: right;
}

/* ========================================
   Splash Image Wrapper
   ======================================== */

.sectr.splash-image-wrap {
    position: relative;
    min-height: 80px;
    background: #f8f9fa;
    overflow: hidden;
}

.sectr.splash-image-wrap.empty {
    background: #e9ecef;
}

.splash-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.splash-image.img-loading {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.splash-image.img-loading.loaded {
    opacity: 1;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .ontoit-project-content .intro-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .ontoit-project-content .intro-section .right {
        padding-left: 0;
    }
    
    .project-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-filters .selectpicker-bs {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 767px) {
    .ontoit-project-content .secondary-image {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    
    .project-card {
        width: 100%;
    }
    
    .ontoit-project-archive .archive_header h1,
    .ontoit-project-archive .projects-banner h1 {
        font-size: 2rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.d-flex {
    display: flex;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   Loading States
   ======================================== */

.ontoit-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.ontoit-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   Accessibility
   ======================================== */

.selectpicker-bs:focus,
.clear-filters:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 