:root {
    --home-radius: 1.375rem;
    --home-radius-sm: 1.375rem;
    --home-accent: #0D3078;
    --home-shadow: 0 8px 32px rgba(13, 48, 120, 0.12);
    --home-shadow-hover: 0 16px 40px rgba(13, 48, 120, 0.18);
}

.home-page .btn,
.home-page .card,
.home-page .home-section-panel,
.home-page .home-service-card,
.home-page .home-stat-card,
.home-page .home-job-card,
.home-page .home-news-featured,
.home-page .home-news-list-item,
.home-page .home-company-card,
.home-page .portal-button,
.home-page .home-hero-image-wrap {
    border-radius: var(--home-radius) !important;
}

.home-section-shell {
    margin: 1.25rem 0;
    padding: 0 1.25rem;
}

.home-section-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--home-radius);
    box-shadow: var(--home-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.home-section-panel:hover {
    box-shadow: var(--home-shadow-hover);
}

.home-section-panel__inner {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.home-section-panel__blur {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.home-section-header__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.home-section-header__title {
    margin: 0;
    color: var(--home-accent);
    font-weight: 700;
}

.home-section-header__link {
    color: var(--home-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.home-section-header__link:hover {
    opacity: 0.75;
    color: var(--home-accent);
    text-decoration: underline;
}

.home-section-icon-img {
    flex-shrink: 0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .home-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.home-hero-image-wrap {
    overflow: hidden;
    aspect-ratio: 1;
    max-width: 420px;
    margin-inline: auto;
    box-shadow: var(--home-shadow);
}

.home-hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-hero-image-wrap:hover img {
    transform: scale(1.06);
}

.home-banner-wrap {
    padding: 0 1.25rem;
    margin: 1.25rem 0;
}

.home-banner-carousel {
    position: relative;
    border-radius: var(--home-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    min-height: 320px;
}

@media (min-width: 992px) {
    .home-banner-carousel {
        min-height: 420px;
    }
}

.home-banner-carousel .carousel-inner,
.home-banner-carousel .carousel-item {
    height: 100%;
    min-height: inherit;
}

.home-banner-carousel .banner-image {
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

#bannerCarousel.home-banner-carousel > .carousel-control-prev,
#bannerCarousel.home-banner-carousel > .carousel-control-next {
    position: absolute;
    z-index: 3;
    top: 50%;
    bottom: auto;
    width: 3.25rem;
    max-width: 3.25rem;
    height: 3.25rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(13, 48, 120, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    filter: none;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: none;
}

#bannerCarousel.home-banner-carousel > .carousel-control-prev {
    inset-inline-start: 1rem;
    inset-inline-end: auto;
}

#bannerCarousel.home-banner-carousel > .carousel-control-next {
    inset-inline-end: 1rem;
    inset-inline-start: auto;
}

#bannerCarousel.home-banner-carousel > .carousel-control-prev:hover,
#bannerCarousel.home-banner-carousel > .carousel-control-prev:focus,
#bannerCarousel.home-banner-carousel > .carousel-control-next:hover,
#bannerCarousel.home-banner-carousel > .carousel-control-next:focus {
    background: rgba(13, 48, 120, 0.55);
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: none;
}

.home-banner-carousel .banner-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.home-banner-carousel .banner-control-icon i {
    font-size: 1.75rem;
    color: #fff;
    line-height: 1;
}

.home-banner-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: var(--home-radius);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-banner-carousel .banner-button {
    border-radius: var(--home-radius);
}

.home-banner-carousel .carousel-indicators [data-bs-target] {
    border-radius: 50%;
}

.home-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .home-news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.home-news-featured {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 48, 120, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-news-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

.home-news-featured__image-wrap {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.home-news-featured__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-news-featured:hover .home-news-featured__image-wrap img {
    transform: scale(1.06);
}

.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-news-list-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 48, 120, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-news-list-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(13, 48, 120, 0.1);
}

.home-news-list-item__thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--home-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.home-companies-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .home-companies-grid--count-1 { grid-template-columns: minmax(260px, 360px); justify-content: center; }
    .home-companies-grid--count-2 { grid-template-columns: repeat(2, 1fr); }
    .home-companies-grid--count-3 { grid-template-columns: repeat(3, 1fr); }
    .home-companies-grid--count-4 { grid-template-columns: repeat(4, 1fr); }
    .home-companies-grid--count-many { grid-template-columns: repeat(6, 1fr); }
}

.home-company-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 48, 120, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--home-shadow-hover);
}

.home-company-card .card-img-top {
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-company-card:hover .card-img-top {
    transform: scale(1.05);
}

.home-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .home-jobs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .home-jobs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .home-jobs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .home-jobs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.home-job-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 48, 120, 0.08);
    border-radius: var(--home-radius-sm);
    padding: 0.75rem 0.55rem;
    min-width: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
}

.home-job-card__logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(13, 48, 120, 0.1);
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.home-job-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.home-job-card__company {
    font-size: 0.72rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.home-job-card__meta {
    font-size: 0.7rem;
    color: #495057;
    margin-bottom: 0;
}

.home-job-card__meta .bx {
    font-size: 0.85rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}

.home-job-card__btn {
    border-radius: 1rem !important;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    margin-top: auto;
}

.home-stats-panel {
    padding: 2rem 1.5rem;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.home-stat-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--home-shadow-hover);
}

.home-stat-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #0D3078, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--home-accent);
    margin-bottom: 0.35rem;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .home-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .home-services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.home-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    min-width: 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 48, 120, 0.08);
    text-decoration: none;
    color: var(--home-accent);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@media (min-width: 768px) {
    .home-service-card {
        gap: 1rem;
        padding: 1.75rem 1.25rem;
        min-height: 180px;
        aspect-ratio: 1;
    }
}

.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow-hover);
    background: rgba(255, 255, 255, 0.95);
    color: var(--home-accent);
}

.home-service-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .home-service-card__icon {
        width: 4.5rem;
        height: 4.5rem;
    }
}

.home-service-card:hover .home-service-card__icon {
    transform: scale(1.08);
}

.home-service-card__title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

@media (min-width: 768px) {
    .home-service-card__title {
        font-size: 1.05rem;
        line-height: 1.4;
    }
}

.home-portal-panel {
    padding: 2rem 1.5rem;
}

.portal-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-portal-panel .portal-button {
    border-radius: var(--home-radius) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.home-portal-panel .portal-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow-hover);
    color: inherit;
}

.home-mobile-more {
    display: block;
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .home-mobile-more { display: none; }
}

.home-desktop-more {
    display: none;
}

@media (min-width: 992px) {
    .home-desktop-more { display: inline; }
}
