:root {
    --brand-primary: #1e3a8a;
    --brand-deep: #282d3c;
    --brand-light: #3cb1ff;
    --text-black: #212529;
    --bs-primary-rgb: 60, 177, 255;
    --bs-primary-rgb: 40, 45, 60;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(0, 177, 255, 1);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}

.btn-primary:hover {
    --bs-btn-border-color: transparent;
}

.btn-outline-primary {
    --bs-btn-color: #999999;
    --bs-btn-border-color: #d0d0d0;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(0, 177, 255, 1);
    --bs-btn-hover-border-color: rgba(0, 177, 255, 1);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(0, 177, 255, 1);
    --bs-btn-active-border-color: rgba(0, 177, 255, 1);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgba(0, 177, 255, 1);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgba(0, 177, 255, 1);
    --bs-gradient: none;
}

.active>.page-link, .page-link.active {
    z-index: 3;
    color: #fff;
    background-color:var(--brand-light);
    border-color: var(--brand-light);
}

.btn:hover {
    color: var(--brand-light);
    background-color: #fff;
    border-color: #d0d0d0;
}

.btn-blue {
    background: var(--brand-light);
    color: #fff;
}

.btn-light {
    color: var(--text-black);
}

.text-primary {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-primary-rgb), var(--bs-text-opacity)) !important;
}

body {
    color: #1f2937;
    padding-top: 66px;
}

.home-section-space {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.brand-logo {
    height: 40px;
}

.navbar {
    padding: 0;
}

.nav-link {
    position: relative;
    padding: 0 1.5rem;
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: -0.35rem;
    height: 2px;
    background: var(--brand-light);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--brand-primary);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.navbar-brand {
    color: var(--brand-primary) !important;
}

.hero-bg {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url(/assets/banner.jpg);
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.hero-lead {
    max-width: 760px;
    text-shadow: #000000 1px 1px 30px;
}

.letter-spacing {
    letter-spacing: 0.08em;
}

.service-icon {
    color: var(--brand-primary);
    font-size: 1.9rem;
}

.service-card {
    border: 1px solid #eef1f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.1) !important;
}

.portfolio-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border: 0;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.portfolio-tab.active {
    background: var(--brand-primary);
    color: #fff;
}

.portfolio-tab:hover {
    transform: translateY(-2px);
    background: #bfdbfe;
    color: #1e3a8a;
    box-shadow: 0 0.5rem 1rem rgba(30, 58, 138, 0.18);
}

.portfolio-list-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 1rem;
}

.portfolio-list {
    padding-left: 1.15rem;
    margin-bottom: 0;
}

.portfolio-list li {
    margin-bottom: 0.35rem;
    line-height: 1.45;
}

.portfolio-client-card {
    height: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 0.95rem;
}

.portfolio-client-name {
    margin-bottom: 0.45rem;
    font-weight: 700;
    color: #111827;
}

.portfolio-system-list {
    margin: 0;
    padding-left: 1.05rem;
    color: #6b7280;
    font-size: 0.93rem;
}

.portfolio-system-list li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.portfolio-panel {
    animation: fadeInPanel 0.18s ease;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.school-logo {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0.35rem 0.8rem rgba(37, 99, 235, 0.2);
}

.security-section {
    background-color: #eff6ff;
}

.iso-badge {
    width: 208px;
    height: 208px;
}

.blog-image {
    height: 190px;
    background: #e5e7eb;
    background-image: url(/assets/banner.jpg)
}

.blog-image img {
    width: 100%;
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    border-radius: 0.75rem;
    padding: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.blog-card h3 {
    margin: 10px 0 20px 0;
}

.home-insight-title {
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link:hover .blog-card {
    transform: translateY(-5px);
    box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.12);
    background-color: #f8fafc;
}

.blog-card-link:active .blog-card {
    transform: translateY(-1px) scale(0.99);
}

.blog-card h3 {
    transition: color 0.2s ease;
}

.blog-card-link:hover h3 {
    color: var(--brand-primary);
}

.site-footer {
    background-color: #111827;
}

.footer-input {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.footer-input::placeholder {
    color: #9ca3af;
}

.footer-input:focus {
    background-color: #1f2937;
    border-color: #60a5fa;
    color: #f9fafb;
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
}

.line-btn {
    width: 100%;
}

@media (min-width: 768px) {
    .iso-badge {
        width: 256px;
        height: 256px;
    }

    .line-btn {
        width: auto;
    }
}

.lang-switch .btn {
    min-width: 42px;
    font-weight: 700;
}

.lang-switch .btn.active {
    color: #fff;
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.case-hero {
    background-image: url(/assets/Portfolio.jpg);
    background-position: center center;
    background-size: cover;
}

.case-hero-content {
    padding-top: 3.5rem;
    padding-bottom: 3rem;

}

.case-block {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.05);
}

.case-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #e5e7eb;
}

.case-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.insight-hero {
    background-image: url(/assets/insight.jpg);
    background-position: center center;
    background-size: cover;
    margin-top: 0;
    color: #fff;
}

.insight-hero p{
    text-shadow: #000000 1px 1px 30px;
}

.insight-hero-content {
    padding-top: 3rem;
    padding-bottom: 2.75rem;
}

.insight-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.8rem 1.5rem rgba(15, 23, 42, 0.1);
}

.insight-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.insight-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4rem;
}

.insight-article {
    margin-top: 24px;
}

.insight-article img {
    width: 100%;
    margin-bottom: 20px
}

.insight-article h1 {
    line-height: 1.35;
}

.page-breadcrumb {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.page-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

li.breadcrumb-item a {
    color: #999;
    text-decoration: auto;
}

@media(max-width:992px) {
    .navbar {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-link {
        padding: 15px 0;
    }

    .nav-link::after {
        left: 0;
        right: 0;
        bottom: 8px;
    }

}
