/* Define custom variables based on the aesthetic of the provided image */
:root {
    --dark-bg: #0C0C0C; /* Very deep dark gray/black from the image */
    --main-text-color: #F8F8F8; /* Near white for main text */
    --subtle-text: #A0A0A0; /* Gray for supporting text */

    /* Colors based on the image's vibrant red */
    --card-body-bg: #1A1A1A; /* Dark background for the card body */
     --card-header-red: #D63031;
    --accent-red-light: #F04A4B; /* Lighter red for the top of the gradient */
    --accent-red-dark: #D63031; /* Darker red for the top band and CTAs */
    --cta-border-color: #8C2224; /* Border color for the Sign In button */
    --card-border: rgba(255, 255, 255, 0.1); /* Subtle white border for cards */
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: var(--dark-bg);
    min-height: 100vh;
}

/* Full-screen background setup with overlay to achieve the moody effect */
.full-screen-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Place behind all content */
    background-image: url('../../assets/images/docinlaw-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay to enhance text visibility and create the high-contrast mood */
.full-screen-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* 85% opacity black overlay */
    /* Subtle red/blue gradient for the moody filter effect */
    background: linear-gradient(135deg, rgba(214, 48, 49, 0.1), rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.9));
}

/* Container for content, ensuring it's above the background layer */
#content-container {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 1rem;
}

/* --- FEATURE CARD STYLING (Refactored to match 2-part structure) --- */
.feature-card {
    background-color: var(--card-body-bg);
    color: var(--main-text-color);
    border-radius: 0.5rem;
    overflow: hidden; /* Keeps the rounded corners seamless */
    height: 100%;
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
}

.feature-card {
    border-color: #d63031; /* Subtle red glow on hover */
}


.card-header-band {
    background-color: var(--card-header-red);
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 0.5rem 0.5rem 0 0; /* Only top corners rounded */
}

.card-header-band i {
    font-size: 2rem;
    color: #fff; /* Icon is white against the red band */
}

.card-content {
    padding: 1.5rem;
}

.feature-card-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
/* --- END FEATURE CARD STYLING --- */


.cta-button-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: background-color 0.2s;
}
.cta-button-primary:hover {
    background-color: #A31E20;
    border-color: #A31E20;
    color: #fff;
}

.cta-button-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    margin-left: 1rem;
}
.cta-button-secondary:hover {
    background-color: rgba(214, 48, 49, 0.1);
    color: var(--accent-red);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--subtle-text);
    margin-bottom: 2rem;
}

/* Styling the red bar at the bottom */
.sponsored-bar {
    background-color: var(--accent-red);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
    font-weight: 500;
}

.footer-text {
    color: var(--subtle-text);
    font-size: 0.9rem;
    padding-bottom: 1rem;
}
/* Utility class to combine title and icon into one section for the source image style */
.feature-card-non-red {
    background-color: var(--card-body-bg);
    border: 1px solid var(--card-border);
}
.card-header-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}
.feature-card-non-red .card-header-section {
    padding-top: 1rem;
}

.card-header-section .icon-svg {
    /* The image shows a very light line art icon */
    stroke-width: 1.5; 
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card-full-red .card-header-section {
    /* No extra padding needed here, handled by title/text padding */
    padding: 0;
    padding-top: 1.5rem;
}
.feature-card-full-red .card-header-section .icon-svg {
    padding-left: 1.5rem;
}

/* Custom style for form inputs to fit the dark theme */
.form-control-dark {
    background-color: var(--dark-bg); 
    border-color: var(--subtle-text); 
    color: var(--main-text-color);
}
.form-control-dark:focus {
    background-color: var(--dark-bg); 
    border-color: var(--accent-red-light);
    box-shadow: 0 0 0 0.25rem rgba(214, 48, 49, 0.25); /* Custom red focus ring */
    color: var(--main-text-color);
}
.cta-button-primary {
    background-color: var(--accent-red-dark);
    border: 1px solid var(--accent-red-dark);
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 2.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s, border-color 0.2s;
    line-height: 1.2;
}
.cta-button-primary:hover {
    background-color: #B52829;
    border-color: #B52829;
    color: #fff;
}

.cta-button-secondary {
    background-color: transparent;
    border: 1px solid var(--cta-border-color);
    color: var(--accent-red-dark);
    font-weight: 600;
    padding: 0.7rem 2.5rem;
    margin-left: 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1.2;
}
.cta-button-primary:hover, .cta-button-primary:focus, .cta-button-primary:active {
    background-color: var(--accent-red) !important;
    color: var(--accent-red-dark) !important;
    border-color: var(--accent-red-dark) !important;
}
 a.cta-anchor {
    color: var(--accent-red-dark);
    text-decoration: none;
    font-weight: 500;
}
.cta-info {
    color: var(--subtle-text);
    font-size: 0.8rem;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: unset;
    color: unset;
}