/* Header logo sizing override (loaded after template + overrides). */
.navbar-brand.site-logo-wrap img.site-logo,
.site-logo-wrap img.site-logo {
    height: auto !important;
    max-height: 32px !important;
}

@media (max-width: 991px) {

    .navbar-brand.site-logo-wrap img.site-logo,
    .site-logo-wrap img.site-logo {
        max-height: 38px !important;
    }
}

@media (max-width: 575px) {

    .navbar-brand.site-logo-wrap img.site-logo,
    .site-logo-wrap img.site-logo {
        max-height: 34px !important;
    }
}

.home-hero-subtitle {
    font-size: 36px !important;
    display: block !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.3;
    white-space: normal !important;
}

.home-hero-title {
    display: block !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 30px !important;
    line-height: 1.35;
}

/* Logo wing blue palette override for homepage hero CTA + push menu circle. */
:root {
    --logo-wing-blue-1: 73, 132, 219; /* #4984DB */
    --logo-wing-blue-2: 100, 177, 231;  /* #64B1E7 */
    --site-gradient-main: linear-gradient(135deg, rgb(var(--logo-wing-blue-1)) 0%, rgb(67, 120, 221) 52%, rgb(var(--logo-wing-blue-2)) 100%);
    --site-gradient-soft: linear-gradient(50deg, rgb(var(--logo-wing-blue-1)) 0%, rgb(var(--logo-wing-blue-2)) 100%);
    --site-gradient-loop: linear-gradient(90deg, rgb(var(--logo-wing-blue-1)) 0%, rgb(var(--logo-wing-blue-2)) 50%, rgb(var(--logo-wing-blue-1)) 100%);
    --base-color: rgb(var(--logo-wing-blue-1));
}

.bg-gradient-emerald-blue-emerald-green {
    background-image: var(--site-gradient-soft) !important;
}

.btn-gradient-emerald-blue-emerald-green {
    background-image: var(--site-gradient-loop) !important;
    background-size: 200% auto !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn:not(.btn-link):not(.btn-link-gradient) {
    background-image: var(--site-gradient-loop) !important;
    background-size: 200% auto !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
}

.btn:not(.btn-link):not(.btn-link-gradient):hover,
.btn:not(.btn-link):not(.btn-link-gradient):focus {
    color: #fff !important;
}

.categories-btn {
    background-image: var(--site-gradient-loop) !important;
    background-size: 200% auto !important;
    background-color: transparent !important;
    border-color: transparent !important;
    color: #fff !important;
}

.categories-btn:hover,
.categories-btn:focus {
    color: #fff !important;
}

i[class*="fa-"]:not(.text-white),
i[class*="feather"]:not(.text-white),
i[class*="icon-feather"]:not(.text-white),
i[class*="line-icon"]:not(.text-white),
i[class*="bi-"]:not(.text-white) {
    background-image: var(--site-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

.btn:not(.btn-link):not(.btn-link-gradient) i {
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #fff !important;
}

.header .header-icon i,
.header-icon i,
.header-search-icon i,
.search-form-icon i,
.push-menu .feature-box-icon i {
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #fff !important;
}

.header-search-icon i::before,
.search-form-icon i::before {
    background-image: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    opacity: 1 !important;
}

.header-push-button .push-button span {
    background-image: none !important;
    background-color: #fff !important;
}

.blog-grid .card .card-body .author .like-count a i,
.article-grid-card .like-count a i {
    background-image: var(--site-gradient-main) !important;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

.progress-bar-style-01 .progress .progress-bar {
    background-image: var(--site-gradient-soft) !important;
    background-color: transparent !important;
}

.progress-bar-style-01 .progress .progress-bar-percent {
    background-image: var(--site-gradient-main) !important;
    background-color: transparent !important;
    color: #fff !important;
}

.progress-bar-style-01 .progress .progress-bar-percent:after {
    border-top-color: rgb(var(--logo-wing-blue-2)) !important;
}

.push-menu .close-menu i {
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #fff !important;
}

.home-hero-primary-btn,
.home-hero-primary-btn:hover,
.home-hero-primary-btn:focus {
    background: var(--site-gradient-main) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
}

.home-hero-primary-btn .btn-icon + .btn-icon {
    display: none !important;
}

.home-hero-primary-btn::before,
.home-hero-primary-btn::after {
    display: none !important;
    content: none !important;
}

.push-menu.push-menu-style-2 .left-circle {
    background: linear-gradient(135deg, rgb(var(--logo-wing-blue-1)) 0%, rgb(67, 120, 221) 35%, rgb(82, 147, 226) 68%, rgb(var(--logo-wing-blue-2)) 100%) !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    isolation: isolate;
}

.push-menu.push-menu-style-2 .left-circle::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 78% 86%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: 100% 100%, 100% 100%, 180px 180px;
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

.push-menu.push-menu-style-2 .left-circle::after {
    display: none !important;
    content: none !important;
}

.home-article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-article-card .blog-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.home-article-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.home-article-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 60px;
}

.home-article-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: 136px;
    margin-bottom: 24px;
}

.home-article-meta {
    margin-top: auto;
}

.article-grid-card {
    overflow: hidden;
}

.article-grid-card .blog-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.article-grid-card-body {
    min-height: 320px;
}

.article-grid-card-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 90px;
}

.article-grid-card-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: 128px;
    margin-bottom: 24px;
}

.article-grid-card-meta {
    margin-top: 20px;
}

@media (max-width: 991px) {
    .article-grid-card-body {
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .article-grid-card-body {
        min-height: auto;
    }
}

.newsletter-subscribe-form .newsletter-submit-button {
    position: absolute;
    top: 1px;
    right: 0;
    width: 50px;
    min-width: 50px;
    height: calc(100% - 2px);
    margin: 0;
    padding: 0;
    border-radius: 0 4px 4px 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-subscribe-form input[name="email"] {
    padding-right: 62px !important;
}

.newsletter-subscribe-form .newsletter-submit-button i {
    margin: 0;
}

.newsletter-subscribe-form input[name="email"],
.newsletter-subscribe-form input[name="first_name"],
.newsletter-subscribe-form input[name="last_name"] {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.newsletter-subscribe-form input[name="email"]:-webkit-autofill,
.newsletter-subscribe-form input[name="email"]:-webkit-autofill:hover,
.newsletter-subscribe-form input[name="email"]:-webkit-autofill:focus,
.newsletter-subscribe-form input[name="first_name"]:-webkit-autofill,
.newsletter-subscribe-form input[name="first_name"]:-webkit-autofill:hover,
.newsletter-subscribe-form input[name="first_name"]:-webkit-autofill:focus,
.newsletter-subscribe-form input[name="last_name"]:-webkit-autofill,
.newsletter-subscribe-form input[name="last_name"]:-webkit-autofill:hover,
.newsletter-subscribe-form input[name="last_name"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #111111 !important;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.12) inset !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    caret-color: #111111 !important;
}

.newsletter-subscribe-form input[name="email"]:autofill,
.newsletter-subscribe-form input[name="first_name"]:autofill,
.newsletter-subscribe-form input[name="last_name"]:autofill,
.newsletter-subscribe-form input[name="email"]:-moz-autofill,
.newsletter-subscribe-form input[name="first_name"]:-moz-autofill,
.newsletter-subscribe-form input[name="last_name"]:-moz-autofill {
    color: #111111 !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
}

.newsletter-subscribe-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}

.newsletter-subscribe-form .form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 2px !important;
    margin: 0 !important;
    flex: 0 0 16px;
    padding: 0 !important;
}

.newsletter-subscribe-form .form-check-label {
    margin: 0;
    line-height: 1.5;
}

.newsletter-name-fields {
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin-top 0.25s ease;
    pointer-events: none;
}

.newsletter-name-fields.is-visible {
    margin-top: 15px;
    max-height: 220px;
    opacity: 1;
    overflow: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.newsletter-feedback-message {
    transition: opacity 0.3s ease-in-out;
}

.newsletter-feedback-message.is-fading {
    opacity: 0;
}

.newsletter-feedback-success {
    color: #72e2a0;
}

.newsletter-feedback-error {
    color: #ff7f7f;
}

.contact-feedback-message {
    transition: opacity 0.3s ease-in-out;
}

.contact-feedback-message.is-fading {
    opacity: 0;
}

.contact-feedback-success {
    color: #198754;
}

.contact-feedback-error {
    color: #dc3545;
}

.menu-order {
    display: flex;
    justify-content: center;
}

.menu-order .navbar-collapse {
    justify-content: center;
}

.menu-order .navbar-nav {
    margin-left: auto;
    margin-right: auto;
}

.header-right-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.header-member-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.header-member-count-number {
    font-size: 18px;
    font-weight: 700;
}

.header-member-count-label {
    opacity: 0.9;
}

.header-member-button {
    min-width: 148px;
    min-height: 40px;
    padding: 10px 18px !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.header-action-separator {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.28);
    display: inline-block;
}

.member-registration-modal .modal-dialog {
    max-width: 680px;
}

.member-registration-modal .modal-content {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 10px;
    background-color: #ffffff;
}

.member-registration-modal .modal-content::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    top: -120px;
    right: -120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(var(--logo-wing-blue-1)) 0%, rgb(67, 120, 221) 45%, rgb(var(--logo-wing-blue-2)) 100%);
    opacity: 0.18;
    pointer-events: none;
}

.member-registration-modal .modal-content::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--logo-wing-blue-1), 0.12) 0%, rgba(var(--logo-wing-blue-2), 0.08) 100%);
    pointer-events: none;
}

.member-registration-modal .modal-header,
.member-registration-modal .modal-body {
    position: relative;
    z-index: 1;
    padding-left: 24px;
    padding-right: 24px;
}

.member-registration-intro {
    color: #6c757d;
    line-height: 1.7;
}

.member-registration-modal .form-label {
    margin-bottom: 8px;
    color: #2f3742;
    font-size: 14px;
    font-weight: 600;
}

.member-registration-modal .form-control {
    border: 1px solid #d7dce2;
    border-radius: 10px;
    min-height: 52px;
    padding: 12px 16px;
    box-shadow: none !important;
}

.member-registration-feedback {
    font-size: 14px;
    line-height: 1.6;
}

.member-registration-feedback-success {
    color: #198754;
}

.member-registration-feedback-error {
    color: #dc3545;
}

@media (max-width: 1199px) {
    .header-right-actions {
        gap: 10px;
    }

    .header-member-summary {
        font-size: 13px;
    }

    .header-member-button {
        min-width: 136px;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 991px) {
    .menu-order {
        justify-content: flex-start;
    }

    .menu-order .navbar-collapse {
        justify-content: flex-start;
    }

    .menu-order .navbar-nav {
        margin-left: 0;
        margin-right: 0;
    }

    .header-right-actions {
        margin-right: 14px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .header-member-summary {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }

    .header-member-button {
        min-width: auto;
    }

    .header-action-separator {
        display: none;
    }
}

@media (max-width: 575px) {
    .member-registration-modal .modal-header,
    .member-registration-modal .modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-member-summary {
        font-size: 12px;
    }

    .member-registration-modal .modal-content::before {
        width: 320px;
        height: 320px;
        top: -100px;
        right: -120px;
    }
}

/* Keep filled fields in the default style instead of Bootstrap's valid-state green. */
.js-contact-form,
.newsletter-subscribe-form,
.js-member-registration-form {
    --bs-form-valid-color: inherit;
    --bs-form-valid-border-color: currentColor;
    --bs-form-valid-bg-image: none;
}

.js-contact-form .form-control.valid,
.js-contact-form .form-control.is-valid,
.js-contact-form .form-control:valid,
.js-member-registration-form .form-control.valid,
.js-member-registration-form .form-control.is-valid,
.js-member-registration-form .form-control:valid,
.newsletter-subscribe-form .form-control.valid,
.newsletter-subscribe-form .form-control.is-valid,
.newsletter-subscribe-form .form-control:valid {
    background-image: none !important;
    box-shadow: none !important;
}

.js-contact-form .form-control.valid,
.js-contact-form .form-control.is-valid,
.js-contact-form .form-control:valid {
    border-color: #dfdfdf !important;
}

.js-member-registration-form .form-control.valid,
.js-member-registration-form .form-control.is-valid,
.js-member-registration-form .form-control:valid {
    border-color: #d7dce2 !important;
}

.newsletter-subscribe-form .form-control.valid,
.newsletter-subscribe-form .form-control.is-valid,
.newsletter-subscribe-form .form-control:valid {
    border-color: transparent !important;
}
