/*
 Theme Name:   TwentyTwentyFive Child
 Template:     twentytwentyfive
 Author:       Your Name
 Description:  Child theme for Twenty Twenty-Five.
 Version:      1.0.2
*/

/* ===============================
   1. Global Overrides
=============================== */
.entry-title {
    display: none !important;
}

body a,
body a:link,
body a:visited,
body a:hover,
body a:active {
    color: #000 !important;
    text-decoration: none !important;
}

body a:hover,
body a:focus {
    text-decoration: underline !important;
}

/* Hide Author and Byline Elements */
.wp-block-post-author,
.wp-block-post-author *,
[class*="post-author"],
[class*="byline"],
[class*="auth"],
[class*="post-author"] *,
[class*="byline"] *,
[class*="auth"] *,
div[class*="wp-block-post-author-name"],
div[class*="wp-block-post-author-name"] * {
    display: none !important;
}

/* ===============================
   2. Global Header Flex & Padding
=============================== */
/* Make the header’s inner alignwide block a flex row */
header#header .site-header-wrapper .wp-block-group.alignwide {
    display: flex !important;
    align-items: center !important;
    padding: 20px 40px !important;
    box-sizing: border-box !important;
}

/* Ensure title/description sizing within that flex row */
header#header .site-title,
header#header .site-description {
    margin: 0;
    max-width: calc(100% - 80px);
}

/* Push the Shop link to the far right */
header#header .header-shop-link {
    margin-left: auto !important;
}

/* Add a small right margin to all header links */
header#header .site-header-wrapper a {
    margin-right: 1rem;
}

/* ===============================
   3. Dynamic Accordion Grid Styles
=============================== */
.two-col-accordion-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.two-col-accordion-item {
    background-color: #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.two-col-accordion-letter {
    font-size: 2rem;
    font-weight: bold;
    padding: 20px 0;
    margin: 0;
}

.two-col-accordion-content {
    display: none;
    padding: 20px;
    background-color: #eee;
    text-align: left;
}

.two-col-accordion-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.two-col-accordion-content li {
    margin-bottom: 5px;
}

.two-col-accordion-content a {
    color: #000 !important;
    text-decoration: none;
}

.two-col-accordion-content a:hover {
    text-decoration: underline;
}

.two-col-accordion-item.active .two-col-accordion-content {
    display: block;
}

@media (max-width: 800px) {
    .two-col-accordion-container {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   4. Model Grid Card Layout
=============================== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    box-sizing: border-box;
}

.model-grid-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.model-grid-item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.model-grid-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.model-grid-item a {
    color: #000 !important;
    text-decoration: none !important;
    display: block;
}

.model-grid-item a:hover {
    text-decoration: underline !important;
}

/* ===============================
   5. Smart Search Input Styles
=============================== */
.smart-search-wrapper {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto 20px auto;
    position: relative;
}

#smart-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#smart-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

#smart-search-results li {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
}

#smart-search-results li:last-child {
    border-bottom: none;
}

#smart-search-results li:hover {
    background-color: #f5f5f5;
}

#smart-search-results li a {
    color: #000;
    text-decoration: none;
    display: block;
}

#smart-search-results li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    #smart-search-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    #smart-search-results li {
        padding: 8px 10px;
    }
}

/* ===============================
   6. Custom Footer Links Styles
=============================== */
.custom-footer-links {
    padding: 20px 40px;
    background: #f9f9f9;
    text-align: center;
}

.custom-footer-links .footer-links-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: inline-flex;
    gap: 2rem;
}

.custom-footer-links .footer-links-list li a {
    color: #000;
    text-decoration: none;
}

.custom-footer-links .footer-links-list li a:hover {
    text-decoration: underline;
}

.custom-footer-links p {
    font-size: 0.85rem;
    color: #666;
}



