:root {
    --primary-navy: #212529;
    --primary-red: #198754;
    --accent-amber: #34c759;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --section-spacing: 140px;
    --element-spacing: 29px;
    --container-max: 1400px;
    --card-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--primary-red); }

img:not(.logo-img):not(.logo) {
    max-width: 100%;
    height: auto;
}

.logo-img {
    max-width: 48px;
    height: auto;
}

.py-section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.bg-navy {
    background-color: var(--primary-navy);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary-red {
    background-color: var(--primary-red);
}

.text-left {
    text-align: left;
}

.bordered-card {
    border-radius: var(--card-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    padding: var(--element-spacing);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bordered-card:hover {
    box-shadow: 0 7px 32px rgba(0, 0, 0, 0.1);
}

.btn-primary-red {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 9px 26px;
    border-radius: var(--card-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-red:hover {
    background-color: #b91c1c;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 13px 26px;
    border-radius: var(--card-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-navy);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

.header-main {
    position: relative;
    z-index: 1000;
}

.navbar-dark.bg-navy {
    background-color: var(--primary-navy) !important;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.25rem;
}

.navbar-brand .site-name {
    color: white;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    font-weight: 500;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-radius: var(--card-radius);
    padding: 13px 0;
}

.dropdown-item {
    padding: 8px 23px;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0f2540 100%);
    color: white;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 47px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.hero-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: 13px;
    box-shadow: 0 26px 48px rgba(0, 0, 0, 0.3);
}

.hero-accent {
    position: absolute;
    bottom: -17px;
    right: -18px;
    width: 97px;
    height: 100px;
    background: var(--primary-red);
    border-radius: 10px;
    z-index: -1;
    pointer-events: none;
}

.feature-card {
    text-align: left;
    height: 100%;
}

.feature-icon {
    width: 61px;
    height: 62px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-muted);
    margin-bottom: 0;
}

.service-card {
    overflow: hidden;
    padding: 0;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: var(--element-spacing);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-red);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: #b91c1c;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

.testimonial-card {
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: var(--element-spacing);
    right: var(--element-spacing);
    color: var(--primary-red);
    opacity: 0.2;
    font-size: 2rem;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 53px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.team-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: center;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
}

.team-social a {
    width: 35px;
    height: 37px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-red);
    color: white;
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.stats-section .stat-card {
    padding: 2rem;
}

.stats-section .stat-icon {
    color: var(--primary-red);
}

.stats-section .stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-section .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.accordion-item {
    border: none;
    margin-bottom: 17px;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.25rem var(--element-spacing);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-white);
    color: var(--primary-red);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc2626'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 0 var(--element-spacing) var(--element-spacing);
    color: var(--text-muted);
    line-height: 1.8;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cta-section {
    padding: 82px 0;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
}

.footer-main {
    padding-top: 0;
}

.footer-brand {
    text-decoration: none;
}

.footer-brand .site-name {
    font-size: 1.25rem;
}

.social-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    background: var(--primary-red);
    color: white;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.footer-links li {
    margin-bottom: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: white;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0f2540 100%);
    color: white;
    padding: 160px 0 77px;
    text-align: left;
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
}

.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--element-spacing);
}

.news-main {
    display: flex;
    flex-direction: column;
    gap: var(--element-spacing);
}

.news-sidebar {
    position: sticky;
    top: 102px;
    height: fit-content;
}

.news-card {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    overflow: hidden;
}

.news-card-featured {
    flex-direction: column;
}

.news-card-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.news-card-featured .news-card-image {
    width: 100%;
    height: 300px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.news-card-category {
    color: var(--primary-red);
    font-weight: 500;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.news-card-title a {
    color: var(--text-dark);
}

.news-card-title a:hover {
    color: var(--primary-red);
}

.news-card-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-card-link {
    color: var(--primary-red);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget {
    margin-bottom: var(--element-spacing);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-red);
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
}

.widget-list a:hover {
    color: var(--primary-red);
}

.contact-form .form-control {
    padding: 12px 17px;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    font-size: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form textarea.form-control {
    min-height: 150px;
}

.contact-info-card {
    text-align: center;
}

.contact-info-icon {
    width: 61px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: var(--text-muted);
    margin-bottom: 0;
}

.article-content {
    max-width: 800px;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-author-img {
    width: 52px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.article-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 9px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.case-study-card {
    overflow: hidden;
    padding: 0;
}

.case-study-image {
    height: 250px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: var(--element-spacing);
}

.case-study-category {
    display: inline-block;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
    padding: 4px 11px;
    border-radius: 49px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.case-study-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.case-study-results {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.result-item {
    text-align: center;
}

.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pricing-card {
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: white;
    padding: 4px 15px;
    border-radius: 49px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 9px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--primary-red);
}

@media (max-width: 991px) {
    :root {
        --section-spacing: 82px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 767px) {
    :root {
        --section-spacing: 62px;
        --element-spacing: 27px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero-section {
        padding-top: 100px;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-image-col {
        margin-top: 2rem;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-cta .btn:last-child {
        margin-bottom: 0;
    }

    .cta-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .news-card {
        flex-direction: column;
    }

    .news-card-image {
        width: 100%;
        height: 200px;
    }

    .team-image {
        height: 220px;
    }

    .service-image {
        height: 180px;
    }

    .navbar-toggler {
        border: none;
        padding: 0;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .header-cta {
        margin-top: 1rem;
    }

    .header-cta .btn {
        width: 100%;
    }

    .footer-bottom .row > div {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}
