:root {
    --texas-red: #bf0a30;
    --texas-blue: #002868;
    --texas-white: #ffffff;
    --texas-sand: #f4d03f;
    --texas-leather: #8b4513;
    --ink: #1f2937;
    --muted: #6b7280;
    --light: #f8fafc;
    --border: #e5e7eb;
    --shadow: 0 16px 40px rgba(0, 40, 104, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
    background: var(--texas-white);
}

a {
    color: var(--texas-blue);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--texas-red);
}

.text-primary {
    color: var(--texas-blue) !important;
}

.bg-primary,
.btn-primary {
    background-color: var(--texas-blue) !important;
    border-color: var(--texas-blue) !important;
}

.btn-danger {
    background-color: var(--texas-red);
    border-color: var(--texas-red);
}

.btn-danger:hover,
.btn-primary:hover {
    background-color: #8f0825 !important;
    border-color: #8f0825 !important;
}

.site-header {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    padding: 0.55rem 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 1020;
}

.site-header.scrolled {
    box-shadow: 0 8px 28px rgba(0, 40, 104, 0.16);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-right: 1rem;
    white-space: nowrap;
}

.brand-star {
    align-items: center;
    background: linear-gradient(135deg, var(--texas-red), var(--texas-blue));
    border-radius: 999px;
    color: var(--texas-white);
    display: inline-flex;
    font-size: 0.9rem;
    height: 2rem;
    justify-content: center;
    margin-right: 0.55rem;
    width: 2rem;
}

.brand-text {
    color: var(--texas-blue);
    font-size: 1rem;
}

.nav-icon {
    color: var(--texas-red);
    font-size: 0.8rem;
    margin-right: 0;
}

.navbar-nav {
    align-items: center;
    gap: 0.1rem;
}

.navbar-nav .nav-link {
    align-items: center;
    border-radius: 0.6rem;
    color: #27364a;
    display: flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.3rem;
    line-height: 1.15;
    margin: 0;
    padding: 0.45rem 0.45rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(191, 10, 48, 0.08);
    color: var(--texas-red);
}

.get-started {
    background: linear-gradient(45deg, var(--texas-red), #ff4646);
    border-radius: 0.65rem;
    color: var(--texas-white) !important;
    font-weight: 700;
    padding: 0.5rem 0.75rem !important;
}

.get-started:hover {
    box-shadow: 0 4px 12px rgba(191, 10, 48, 0.22);
    color: var(--texas-white) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--texas-blue), #123d76 55%, var(--texas-red));
    color: var(--texas-white);
    overflow: hidden;
    padding: 5rem 0;
    position: relative;
}

.hero-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(244, 208, 63, 0.22), transparent 25rem),
        linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%);
    inset: 0;
    position: absolute;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.texas-border::after {
    background: linear-gradient(90deg, var(--texas-red), var(--texas-blue), var(--texas-sand));
    border-radius: 999px;
    content: "";
    display: block;
    height: 4px;
    margin: 1rem auto 0;
    width: 120px;
}

.content-card,
.blog-card,
.sidebar-widget,
.author-bio,
.quick-links-card {
    background: var(--texas-white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.content-card .card-body {
    padding: 2rem;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: var(--light);
    border-radius: 999px;
    display: inline-flex;
    margin: 0;
    padding: 0.75rem 1rem;
}

.breadcrumb a {
    text-decoration: none;
}

.footer {
    background: linear-gradient(135deg, #05162f, var(--texas-blue));
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4rem;
    padding: 4rem 0 2rem;
}

.footer-logo {
    align-items: center;
    color: var(--texas-white);
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 800;
    gap: 0.6rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.footer-logo:hover {
    color: var(--texas-sand);
}

.footer-logo i {
    color: var(--texas-sand);
}

.footer-description {
    max-width: 28rem;
}

.footer-heading {
    color: var(--texas-white);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-links,
.footer-contact,
.site-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li,
.site-map-list li {
    margin-bottom: 0.65rem;
}

.footer-links a,
.site-map-list a,
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-links a:hover,
.site-map-list a:hover,
.footer-bottom-links a:hover {
    color: var(--texas-sand);
}

.footer-links i {
    color: var(--texas-sand);
    margin-right: 0.45rem;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--texas-sand);
    margin-top: 0.25rem;
}

.social-links,
.trust-badges,
.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--texas-white);
    display: inline-flex;
    height: 2.4rem;
    justify-content: center;
    text-decoration: none;
    width: 2.4rem;
}

.social-link:hover {
    background: var(--texas-red);
    color: var(--texas-white);
    transform: translateY(-2px);
}

.trust-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
}

.trust-badge i {
    color: var(--texas-sand);
}

.site-map-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 3rem;
    padding-top: 2rem;
}

.site-map-section h5 {
    color: var(--texas-white);
    font-size: 0.95rem;
    font-weight: 800;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.footer-bottom p {
    margin: 0;
}

.reading-progress {
    background: linear-gradient(90deg, var(--texas-red), var(--texas-blue), var(--texas-sand));
    height: 3px;
    left: 0;
    position: fixed;
    top: 0;
    width: 0;
    z-index: 9999;
}

@media (max-width: 1199.98px) {
    .navbar-nav {
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem 0 0.5rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .get-started {
        margin-top: 0.35rem;
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .site-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .brand-text {
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 3.5rem 0;
    }

    .site-map-grid {
        grid-template-columns: 1fr;
    }
}
