/* --- CSS Variables for Light Theme --- */

:root {
    --primary-color: #0d6efd;
    --light-gray-bg: #f8f9fa;
    --heading-color: #212529;
    --body-color: #495057;
    --border-color: #dee2e6;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* --- Base Styles & Light Theme --- */
body {
    font-family: var(--body-font);
    padding-top: 56px; 
    background-color: #ffffff;
    color: var(--body-color);
	display: flex;
    flex-direction: column;
}

/* --- Hero Section Styling for Light Theme --- */
#hero-light {
    background-color: var(--light-gray-bg);
    border-bottom: 1px solid var(--border-color);
}

.hero-title-light {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--heading-color);
}

/* --- General Section & Text Styling --- */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title-light {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

h2, h3, h4, h5, h6 {
    padding-top: 80px;
    margin-top: -80px;
    font-weight: 600;
    color: var(--heading-color);
}

/* --- Clean Card Styles for Light Theme --- */
.feature-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.feature-icon-light {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 2rem;
    border-radius: 50%;
}

.testimonial-card-light {
    background-color: var(--light-gray-bg);
    border-left: 5px solid var(--primary-color);
    height: 100%;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.pricing-highlight-light {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.15) !important;
}

/* --- Scroll Animation --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Blog Page Specific Styling --- */
.blog-card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15)!important;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.blog-post section p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ================================================================= */
/* --- Enhanced Footer Styling ---                                   */
/* ================================================================= */
.footer-heading {
    color: #ffffff;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* Override Bootstrap's default 'text-muted' specifically inside the dark footer */
.footer .text-muted {
    color: #adb5bd !important;
}

.footer-link {
    display: inline-block;
    padding-bottom: 0.25rem;
    position: relative;
    color: #adb5bd !important;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link:hover {
    color: #ffffff !important;
}

.social-icon .bi {
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

.social-icon .bi:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

section[id] {
    scroll-margin-top: 80px;
}

/* ================================================================= */
/* --- FINAL, AUTHORITATIVE DROPDOWN FIX ---                       */
/* ================================================================= */

/* Part 1: Style the main link to LOOK like a blue button. (Cosmetic) */
.navbar-nav .nav-item.dropdown > a.nav-link.dropdown-toggle {
    background-color: #0d6efd; /* Bootstrap Primary Blue */
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.navbar-nav .nav-item.dropdown > a.nav-link.dropdown-toggle:hover {
    background-color: #0b5ed7;
}

/* Part 2: Manually position the dropdown CONTAINER. */
.navbar-nav > .nav-item.dropdown {
    position: relative; /* The anchor */
}

.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0.5rem !important;
    min-width: 280px; /* Give the menu a generous width */
    padding: 0.5rem 0 !important;
    border-radius: 0.5rem !important;
}

/* Part 3: CRITICAL - Reset the layout of each LIST ITEM to be a simple container. */
.navbar-nav .dropdown-menu > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Part 4: CRITICAL - Force ALL content INSIDE the list items
   into a consistent, non-overlapping layout using Flexbox. */
.navbar-nav .dropdown-menu > li > .dropdown-item,
.navbar-nav .dropdown-menu > li > .dropdown-header {
    /* Layout and Sizing */
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.625rem 1.5rem !important; /* 10px 24px */
    white-space: nowrap !important;

    /* Reset conflicting styles */
    float: none;
    clear: both;
    background-color: transparent;
    border: 0;
}

/* Part 5: Specific styling for headers vs. links */
.navbar-nav .dropdown-menu > li > .dropdown-header {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd !important;
    margin-top: 0.25rem;
}
.navbar-nav .dropdown-menu > li:first-child > .dropdown-header {
    margin-top: 0;
}

/* Style links on hover */
.navbar-nav .dropdown-menu > li > a.dropdown-item {
    color: #dee2e6 !important;
    text-decoration: none;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.navbar-nav .dropdown-menu > li > a.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding-left: 1.75rem !important; /* Indent on hover for nice UX */
}

/* Part 6: Style the icons inside the links for perfect alignment */
.navbar-nav .dropdown-menu .dropdown-item i {
    margin-right: 0.75rem;
    width: 1.25rem; /* Ensures text aligns vertically regardless of icon */
    text-align: center;
}

/* ================================================================= */
/* --- ENHANCED NAVIGATION STYLING ---                              */
/* ================================================================= */

/* Add smooth transitions to all nav links */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.2s ease;
}

/* Underline effect for main nav links */
.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: 80%;
}

/* Active nav item styling */
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

/* Improve mobile menu appearance */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #212529;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
    }
    
    .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        display: none;
    }
}

/* ================================================================= */
/* --- ACCESSIBILITY IMPROVEMENTS ---                               */
/* ================================================================= */

/* Focus visible states for keyboard navigation */
.navbar-nav .nav-link:focus-visible,
.navbar-nav .dropdown-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.text-muted {
    color: #6c757d !important;
}

/* Skip to main content link (add this to your HTML if needed) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

html, body {
    height: 100%;
}

/* This targets the <main> tag in layout.html */
main.flex-shrink-0 {
    flex-grow: 1;
    /* This is a crucial fix to make the main area a flex container itself,
       allowing the .docs-container inside it to expand correctly. */
    display: flex;
    flex-direction: column;
}