/*
 Theme Name:   Astra Child — Car Injury Lawyers Directory
 Theme URI:    https://carinjurylawyersnearme.com
 Description:  Child theme for carinjurylawyersnearme.com. Contains layout
               and typography overrides only. All custom functionality is
               handled via WP Code Snippets.
 Author:       carinjurylawyersnearme.com
 Author URI:   https://carinjurylawyersnearme.com
 Template:     astra
 Version:      1.0.0
 License:      GPL-2.0-or-later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  ciln-child
 Tags:         legal, directory, child-theme
*/

/* ===========================================================================
   CHILD THEME OVERRIDES
   Only layout/typography changes go here.
   Component styles (cards, forms, buttons) live in snippet-06 CSS snippet.
   =========================================================================== */

/* --- Astra header --- */
.ast-masthead-custom-menu-items,
.ast-search-menu-icon {
    display: flex;
    align-items: center;
}

/* Site header background */
#ast-fixed-header,
.ast-header-wrap,
.site-header {
    background-color: #0b4a6f !important;
}

/* Header logo area */
.ast-site-title,
.ast-site-title a {
    color: #ffffff !important;
}

/* Navigation links */
.main-navigation a,
.ast-primary-menu > li > a {
    color: #e0f0fb !important;
}

.main-navigation a:hover,
.ast-primary-menu > li > a:hover,
.ast-primary-menu > li.current-menu-item > a {
    color: #f39c12 !important;
}

/* Astra mobile header */
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-trigger-fill svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* --- Footer --- */
.site-footer,
.ast-site-footer {
    background-color: #0b4a6f;
    color: #e0f0fb;
}

.site-footer a,
.ast-site-footer a {
    color: #f39c12;
    text-decoration: none;
}

.site-footer a:hover,
.ast-site-footer a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* --- Page/Post content area --- */
.ast-container,
.entry-content {
    max-width: 1200px;
}

/* --- Sidebar --- */
.widget-title,
.widgettitle {
    color: #0b4a6f;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 8px;
}

/* --- Pagination --- */
.page-numbers.current {
    background: #0b4a6f;
    color: #ffffff;
    border-color: #0b4a6f;
}

.page-numbers:hover {
    background: #f39c12;
    color: #ffffff;
    border-color: #f39c12;
}

/* --- Astra buttons override --- */
.ast-btn,
.button,
input[type="submit"] {
    background-color: #0b4a6f !important;
    color: #ffffff !important;
    border-color: #0b4a6f !important;
}

.ast-btn:hover,
.button:hover,
input[type="submit"]:hover {
    background-color: #093b58 !important;
    border-color: #093b58 !important;
}

/* --- Directorist search form inside Astra --- */
.directorist .directorist-search-area {
    background: #0b4a6f;
    padding: 30px 20px;
    border-radius: 10px;
}

/* --- Archive / taxonomy page header --- */
.ast-archive-description,
.taxonomy-description {
    background: #f8fafc;
    border-left: 4px solid #f39c12;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 0 8px 8px 0;
    color: #374151;
}

/* --- Related searches block layout --- */
.ciln-related-searches {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 32px 0;
}

.ciln-related-searches__heading {
    color: #0b4a6f;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ciln-related-searches__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ciln-related-searches__link {
    display: inline-block;
    padding: 5px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #0b4a6f;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ciln-related-searches__link:hover {
    background: #0b4a6f;
    border-color: #0b4a6f;
    color: #ffffff;
}

/* --- Nearby cities block --- */
.ciln-nearby-cities {
    margin: 24px 0;
}

.ciln-nearby-cities__heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.ciln-nearby-cities__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ciln-nearby-cities__link {
    color: #0b4a6f;
    text-decoration: none;
    font-size: 0.9375rem;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ciln-nearby-cities__link:hover {
    color: #f39c12;
}

/* --- Breadcrumbs --- */
.ciln-breadcrumbs {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ciln-breadcrumbs a {
    color: #0b4a6f;
    text-decoration: none;
}

.ciln-breadcrumbs a:hover {
    text-decoration: underline;
}

.ciln-breadcrumb__sep {
    margin: 0 4px;
    color: #9ca3af;
}

/* --- AdSense ad units --- */
.ciln-ad {
    margin: 24px 0;
    text-align: center;
    min-height: 90px;
}

.ciln-ad--sidebar {
    margin: 16px 0;
}

/* --- Mobile responsiveness --- */
@media (max-width: 768px) {
    .ast-container,
    .entry-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .ciln-related-searches__list {
        gap: 6px;
    }

    .ciln-related-searches__link {
        font-size: 0.8125rem;
        padding: 4px 10px;
    }
}
