body {
    background:
        radial-gradient(900px 320px at 15% -10%, rgba(242, 106, 61, 0.16), rgba(242, 106, 61, 0)),
        radial-gradient(900px 360px at 85% -15%, rgba(47, 79, 225, 0.2), rgba(47, 79, 225, 0)),
        #eef3ff;
}

.law-header .navbar {
    border-bottom: 1px solid #e7edf5;
}

.law-hero {
    background: linear-gradient(180deg, #eef3ff, #e7eefb);
    color: #1a2f57;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 10px 24px rgba(21, 53, 120, 0.08);
    padding-top: 1.2rem !important;
    padding-bottom: 1.3rem !important;
    overflow: hidden;
}

.law-tagline {
    color: #d6e6fb;
    font-size: 1.08rem;
}

.law-slider {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d5e1f4;
    box-shadow: 0 12px 24px rgba(10, 39, 73, 0.16);
    background: transparent;
    margin-bottom: 0 !important;
}

.law-slide-img {
    height: 360px;
    object-fit: cover;
    background: linear-gradient(130deg, #114f86, #0b3a62);
}

.law-slide-caption {
    left: 6%;
    right: 6%;
    bottom: 1.25rem;
    text-align: left;
    background: linear-gradient(180deg, rgba(6, 31, 58, 0.08), rgba(6, 31, 58, 0.72));
    border-radius: 12px;
    padding: 0.9rem 1rem;
    max-width: calc(100% - 12%);
}

.law-slide-caption h2 {
    margin: 0 0 0.25rem;
    font-size: clamp(1rem, 2vw, 1.45rem);
    color: #fff;
}

.law-slide-caption p {
    margin: 0;
    color: rgba(234, 243, 255, 0.95);
    font-size: 0.95rem;
}

.law-slider .carousel-control-prev,
.law-slider .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    background: rgba(8, 22, 49, 0.28);
    border-radius: 50%;
    margin: 0 14px;
}

.law-slider .carousel-control-prev-icon,
.law-slider .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.law-slider .carousel-control-prev:hover,
.law-slider .carousel-control-next:hover {
    opacity: 1;
    background: rgba(8, 22, 49, 0.42);
}

.home-highlight-strip {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    border: 1px solid #d7e3f6;
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    color: #1e3f8d;
    box-shadow: 0 8px 18px rgba(21, 53, 120, 0.08);
}

.highlight-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7efff;
    font-size: 1rem;
    color: #2c55bf;
}

.highlight-item h3 {
    margin: 0 0 0.18rem;
    font-size: 0.98rem;
    color: #173f9f;
}

.highlight-item p {
    margin: 0;
    color: #4f6387;
    font-size: 0.84rem;
}

.home-main {
    position: relative;
}

.home-section {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #d6e2f5;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 14px 30px rgba(30, 66, 161, 0.08);
}

.home-section h2 {
    color: #173f9f;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.home-court-card {
    background: linear-gradient(180deg, #ffffff, #f7faff);
    border: 1px solid #d8e5f8 !important;
}

.home-latest-card {
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    border: 1px solid #d7e4f6 !important;
}

.home-latest-card .card-body h3 a {
    color: #163f9f;
    font-weight: 700;
}

.home-latest-card .card-body h3 a:hover {
    color: #f26a3d;
}

.popular-chip {
    text-decoration: none;
    color: #1d3f8f;
    border: 1px solid #c9d7f2;
    background: linear-gradient(180deg, #ffffff, #eef4ff);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.popular-chip:hover {
    color: #fff;
    background: linear-gradient(180deg, #2a66e6, #1d49bd);
    border-color: #2a66e6;
    transform: translateY(-1px);
}

.home-why-card {
    background: linear-gradient(180deg, #ffffff, #f8f4ff);
    border: 1px solid #dddcff !important;
}

.home-why-card .law-icon {
    color: #2f4fe1;
    background: #e8eeff;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.law-card {
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #dbe6f5;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.law-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(10, 39, 73, 0.14) !important;
}

.law-icon {
    font-size: 1.5rem;
    color: #0f4c81;
}

@media (max-width: 768px) {
    .law-slide-img {
        height: 240px;
    }

    .law-slider .carousel-control-prev,
    .law-slider .carousel-control-next {
        width: 34px;
        height: 34px;
        margin: 0 8px;
    }

    .law-slider .carousel-control-prev-icon,
    .law-slider .carousel-control-next-icon {
        width: 0.85rem;
        height: 0.85rem;
    }

    .law-slide-caption {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.65rem;
        padding: 0.65rem 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .home-highlight-strip {
        grid-template-columns: 1fr;
    }
}
