/* RESET & CORE ROOT SYSTEM LAYER COHESION STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fcf9f4; /* Warm crisp asset canvas page tint */
    color: #222222;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* TOP MINI HEADER BAR CONFIG */
.top-bar {
    background-color: #051021;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 10px 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

/* NAVIGATION HEADER LAYOUT PROPERTIES */
.main-header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 6rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    color: #0a2540;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: #0a2540;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    color: #666;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #444444;
}

.nav-links a:hover, .nav-links a.active {
    color: #0a2540;
    font-weight: 600;
}

.btn-assessment {
    background-color: #0f233c;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-assessment:hover {
    background-color: #1a365d;
}

/* TOOLS FLAT RECOVERY HERO OVERLAY COMPONENT */
.tools-hero-section {
    background-color: #051021; /* Rich midnight corporate branding layer */
    color: #ffffff;
    padding: 80px 8%;
    text-align: left;
}

.tools-hero-content {
    max-width: 800px;
}

.tools-hero-tag {
    font-size: 11px;
    letter-spacing: 3px;
    color: #d1b894;
    font-weight: 600;
    display: block;
    margin-bottom: 16px;
}

.tools-hero-section h1 {
    font-family: 'Cinzel', serif;
    font-size: 52px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
}

.tools-hero-section p {
    font-size: 20px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.privacy-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background-color: rgba(255,255,255,0.04);
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 25px;
}

/* DIRECTORY STREAMS MATRIX CORE WRAPPER */
.tools-directory-container {
    max-width: 1140px;
    margin: 60px auto 90px auto;
    padding: 0 20px;
}

.directory-section-group {
    margin-bottom: 60px;
}

.directory-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
}

.directory-section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    color: #0f233c;
    font-weight: 500;
}

.section-count-tag {
    font-size: 12px;
    color: #7f8c8d;
    background-color: #fff;
    border: 1px solid #e2dcd0;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* ADAPTIVE GRIDS FOR CATEGORIZED DIRECTORIES */
.directory-cards-grid {
    display: grid;
    gap: 20px;
}

.dynamic-five-grid { grid-template-columns: repeat(3, 1fr); } /* Self assessment specific fallback layout map */
.internal-three-grid { grid-template-columns: repeat(3, 1fr); }
.internal-four-grid { grid-template-columns: repeat(3, 1fr); }
.internal-two-grid { grid-template-columns: repeat(2, 1fr); }

/* DIRECTORY INDIVIDUAL COMPACT INTERACTION CARDS */
.directory-tool-card {
    background-color: #ffffff;
    border: 1px solid #e2dcd0;
    border-radius: 12px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: all 0.25s ease;
}

.directory-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.tool-card-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: #051021;
    color: white;
    font-size: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.directory-tool-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f233c;
    margin-bottom: 8px;
}

.directory-tool-card p {
    font-size: 13.5px;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-action-trigger {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f233c;
    display: inline-block;
}

/* OVERRIDE CONVERSION CONTEXT CARD STRIP MATCHING PLATFORM ELEMENTS */
.conversion-strip-box-override {
    background-color: #f4eae1;
    border: 1px solid #e2dcd0;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
}

.take-step-left h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #0f233c;
    margin-top: 5px;
    margin-bottom: 5px;
}

.take-step-left p {
    font-size: 14px;
    color: #555555;
}

.take-step-right {
    display: flex;
    gap: 15px;
}

.btn-toolkit-secondary {
    border: 1px solid #0f233c;
    color: #0f233c;
    padding: 15px 32px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 15px;
}

.btn-assessment-primary {
    background-color: #0f233c;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
}

/* CRISIS RED ALERTS RIBBON STYLING */
.crisis-banner {
    background-color: #b92c2c;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* SYSTEM MEGA FOOTER INTERFACE PANELS */
.main-footer {
    background-color: #040d1a;
    color: #94a3b8;
    padding: 70px 8% 30px 8%;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.logo-area.light .logo-title { color: #ffffff; }
.logo-area.light .logo-subtitle { color: #94a3b8; }

.brand-desc {
    margin-top: 20px;
    line-height: 1.6;
    font-size: 13.5px;
    color: #cbd5e1;
}

.footer-contact-info { margin-top: 25px; }
.footer-contact-info p { margin-bottom: 10px; font-size: 14px; color: #ffffff; }

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.footer-links-grid h4 {
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links-grid ul { list-style: none; }
.footer-links-grid ul li { margin-bottom: 12px; }
.footer-links-grid ul li a { color: #94a3b8; font-size: 13px; }
.footer-links-grid ul li a:hover { color: #ffffff; }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 40px 0;
}

/* PATIENT TOOLS PANEL AT FOOTER BASE */
.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.tools-tag {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #d1b894;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.tools-header h3 {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}

.btn-toolkit {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tools-grid ul { list-style: none; }
.tools-grid ul li { margin-bottom: 12px; }
.tools-grid ul li a { color: #94a3b8; font-size: 13px; }
.tools-grid ul li a:hover { color: #ffffff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-top: 20px;
}

.legal-links a { margin-left: 20px; color: #64748b; }
.legal-links a:hover { color: #ffffff; }

/* STICKY ACCENT FLOAT WIDGET CHANNELS */
.chat-widget {
    position: fixed;
    bottom: 25px;
    z-index: 999;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-widget {
    left: 25px;
    background-color: #22c55e;
    width: 45px;
    height: 45px;
    font-size: 20px;
}

.right-widget {
    right: 25px;
    background-color: #0f233c;
    color: white;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE FLUID MEDIA DEPLOYMENTS */
@media (max-width: 1024px) {
    .dynamic-five-grid, .internal-three-grid, .internal-four-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .conversion-strip-box-override { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 600px) {
    .dynamic-five-grid, .internal-three-grid, .internal-four-grid, .internal-two-grid { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; }
    .legal-links a { margin-left: 0; margin-right: 15px; }
    .nav-links { display: none; }
}




.internal-two-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.directory-tool-card{
    height: 100%;
}











/* --- NAV DROPDOWN STYLING --- */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown ke andar ke links ka box */
.dropdown-content {
    display: none; /* Pehle se chhupa rahega */
    position: absolute;
    background-color: #ffffff; /* Pure white background */
    min-width: 220px; /* Box ki width */
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15); /* Premium shadow effect */
    border-radius: 8px; /* Smooth corners */
    padding: 10px 0;
    top: 100%; /* Navbar ke thik niche khulega */
    left: 0;
    z-index: 1000;
}

/* Dropdown ke andar ke individual links */
.dropdown-content a {
    color: #444444 !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Jab dropdown ke links par mouse jaye */
.dropdown-content a:hover {
    background-color: #faf8f5; /* Aapka cream header tone */
    color: #0a2540 !important; /* Premium dark blue tone */
}

/* JAISE HI PROGRAMS PAR MOUSE JAYEGA -> DROPDOWN DIKHEGA */
.dropdown:hover .dropdown-content {
    display: block;
}