/* ===== CRI Hero Section ===== */
.cri-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9f7 100%);
    position: relative;
    overflow: hidden;
}

.min-vh-80 {
    min-height: 80vh;
}

.cri-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.cri-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cri-hero-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.cri-hero-description p {
    margin-bottom: 15px;
}

.cri-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cri-hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn-cri-primary {
    background-color: #00a651;
    border-color: #00a651;
    color: white;
    font-weight: 600;
    padding: 12px 35px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-cri-primary:hover {
    background-color: #008a42;
    border-color: #008a42;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}


/* ===== CRI Navbar ===== */
.cri-navbar {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.cri-navbar-brand {
    display: flex;
    align-items: center;
    margin-right: auto;
    padding-left: 15px;
}

.cri-navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.cri-navbar-brand:hover img {
    transform: scale(1.02);
}

.cri-navbar-menu {
    gap: 0;
    flex: 0 1 auto;
    justify-content: center;
}

.cri-navbar-menu .nav-item {
    margin: 0 20px;
}

.cri-navbar-menu .nav-link {
    color: #333333;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    padding: 8px 0 !important;
    border-bottom: 2px solid transparent;
    position: relative;
}

.cri-navbar-menu .nav-link:hover {
    color: #00a651;
}

.cri-navbar-menu .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00a651;
}

.cri-navbar-menu .active .nav-link {
    color: #00a651;
    border-bottom-color: #00a651;
}

.cri-navbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 15px;
    gap: 20px;
}

.cri-navbar-right .widget {
    margin: 0;
}

/* Search Container */
.cri-navbar-search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.cri-navbar-search-toggle {
    color: #333333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.cri-navbar-search-toggle:hover {
    color: #00a651;
    transform: scale(1.1);
}

/* Search Form Wrapper */
.cri-search-form-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 350px;
    max-width: 400px;
    margin-top: -1px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.cri-search-form-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cri-navbar-search-form {
    position: relative;
}

/* Search Input Group */
.cri-search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.cri-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

.cri-search-input:focus {
    outline: none;
    border-color: #00a651;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.cri-search-input::placeholder {
    color: #999999;
}

.cri-search-submit {
    background: #00a651;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.cri-search-submit:hover {
    background: #008a42;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 166, 81, 0.2);
}

/* Search Results */
.cri-search-results {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: none;
}

.cri-search-results.active {
    display: block;
    animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cri-search-result-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.cri-search-result-item:last-child {
    border-bottom: none;
}

.cri-search-result-item:hover {
    background-color: #f9f9f9;
    padding-left: 8px;
}

.cri-search-result-link {
    text-decoration: none;
    color: #333333;
    display: block;
}

.cri-search-result-title {
    font-weight: 600;
    color: #00a651;
    font-size: 0.95rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.cri-search-result-item:hover .cri-search-result-title {
    color: #008a42;
}

.cri-search-result-excerpt {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.4;
}

.cri-search-no-results {
    text-align: center;
    padding: 15px 0;
    color: #999999;
    font-size: 0.9rem;
}

.cri-search-loading {
    text-align: center;
    padding: 15px 0;
    color: #00a651;
    font-size: 0.9rem;
}

.cri-search-loading::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #00a651;
    border-radius: 50%;
    margin-left: 5px;
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.cri-navbar-toggler {
    border: none;
    padding: 0;
}

.cri-navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.cri-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .cri-hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .cri-hero-title {
        font-size: 2rem;
    }
    
    .cri-hero-image {
        margin-top: 30px;
    }
    
    .cri-navbar-menu .nav-item {
        margin: 10px 0;
    }
    
    .cri-navbar-menu .nav-link {
        padding: 10px 0 !important;
    }
    
    .cri-navbar-right {
        margin-left: 0;
        margin-top: 15px;
        flex-wrap: wrap;
        padding-right: 0;
    }

    .cri-navbar-brand {
        margin-right: 0;
        padding-left: 0;
    }

    .navbar-collapse {
        padding-top: 15px;
    }

    .cri-search-form-wrapper {
        min-width: 280px;
        max-width: 100%;
        right: 0;
        left: auto;
    }
}

@media (max-width: 576px) {
    .cri-search-form-wrapper {
        min-width: calc(100vw - 40px);
        max-width: 100%;
        left: 20px;
        right: auto;
        top: calc(100% + 10px);
    }

    .cri-search-input-group {
        flex-wrap: wrap;
    }

    .cri-search-input {
        width: 100%;
    }

    .cri-search-results {
        max-height: 300px;
    }
}
