/* ==========================================================================
   LOCAL.CSS - Index Page Specific Styles
   ========================================================================== */

/* MAIN LAYOUT */
main {
    padding: 0;
}

/* SECTION HEADERS */
.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.section-header i {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

/* ESSENTIALS GRID */
#essentials {
    padding-top: 4rem;
}

.essentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.essential-card {
    background: var(--surface-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.essential-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
}

.essential-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.card-icon-wrapper {
    background: #eff6ff;
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.essential-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.essential-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* DIRECTORY LAYOUT - MASONRY STYLE */
.directory-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.kb-module {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 100%;
}

.kb-header {
    background: var(--primary-navy);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* KB DROPDOWN ROW */
.kb-dropdown-row {
    padding: 1rem 1.5rem;
    background: var(--bg-off-white);
    border-bottom: 1px solid var(--border-subtle);
}

.kb-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-white);
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.kb-select:hover {
    border-color: var(--primary-blue);
}

.kb-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.kb-subgroup {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.kb-subgroup:last-child {
    border-bottom: none;
}

.kb-sub-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.link-item:hover {
    background-color: var(--border-subtle);
    color: var(--primary-blue);
    padding-left: 0.75rem;
}

.link-item i {
    font-size: 0.75rem;
    color: var(--accent-gold);
    opacity: 0.7;
}

.highlight-match {
    background-color: rgba(217, 119, 6, 0.15) !important;
    border-left: 3px solid var(--accent-gold);
}

/* PARTNERS SECTION */
.partners-container {
    margin-top: 3rem;
    padding-bottom: 4rem;
}

.partners {
    background: #cbd5e1;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

.partner-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.partner-chip {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.partner-chip:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
    .directory-section {
        grid-template-columns: 1fr;
    }
}
