/* TELMORE FAQ DESIGN - DYNAMIC COLORS */

:root {
    --bg-pink: #f5e6ed;
    --bg-light-blue: #e8f1f8;
    --text-navy: #001a4d;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --link-blue: #0052cc;
    --link-blue-hover: #003d99;
    --accent-pink: #e91e63;
    --border-light: #e0e0e0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-pink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.faq-hero-section,
.faq-category-section,
.faq-recent-section{
    width:100vw;
    margin-left:calc(50% - 50vw);
    padding:80px 0;
}

.faq-container {

    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    color: var(--text-dark);
}

/* ===== MAIN HEADING ===== */

.faq-container > h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-navy);
    text-align: center;
    margin: 0 0 40px;
}

/* ===== SEARCH SECTION ===== */

.faq-search {
    position: relative;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#faq-search-input {
    width: 100%;
    padding: 14px 24px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--white);
    transition: all 0.2s;
}

#faq-search-input:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#faq-search-input::placeholder {
    color: #999;
}

#faq-results {
    position: absolute;
    background: var(--white);
    width: 100%;
    top: calc(100% + 8px);
    left: 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-results li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
     list-style: none;
}

.faq-results li:last-child {
    border-bottom: none;
}

.faq-results li:hover {
    background: #f9f9f9;
}

.faq-results a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    display: block;
}

.faq-results a:hover {
    color: var(--link-blue);
}

/* ===== CATEGORIES GRID (4 COLUMNS) ===== */

.faq-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.faq-cat {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faq-cat a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.faq-icon {
    width: 56px !important;
    height: 56px !important;
    display: block !important;
    margin: 0 auto 16px !important;
    object-fit: contain;
}

.faq-cat:hover .faq-icon {
    transform: scale(1.1);
}

.faq-cat h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-navy);
    flex-grow: 0;
}

.faq-cat p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.faq-readmore {
    font-weight: 400;
    font-size: 13px;
    color: var(--link-blue);
    display: inline-block;
    text-decoration: none;
    transition: color 0.2s;
    margin-top: auto;
}

.faq-readmore:hover {
    color: var(--link-blue-hover);
    text-decoration: underline;
}

.faq-cat:hover .faq-readmore {
    text-decoration: underline;
}

/* ===== SECONDARY SECTION (2x2 Grid) ===== */

.faq-secondary-section {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 40px;
    margin: 50px 0;
}

.faq-categories-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.faq-item-secondary:hover {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item-secondary a {
    text-decoration: none;
    color: var(--text-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item-secondary h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--text-navy);
    flex-grow: 1;
}

.faq-icon-secondary {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.faq-arrow {
    color: var(--link-blue);
    font-size: 18px;
    flex-shrink: 0;
}

.faq-item-secondary:hover .faq-arrow {
    transform: translateX(4px);
}

/* ===== RECENT TOPICS SECTION (LIGHT BLUE BG) ===== */

.faq-recent-section {
 
    border-radius: 12px;
    padding: 50px;
}

.faq-recent-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-navy);
    text-align: center;
    margin: 0 0 40px;
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    transition: all 0.2s;
}

.faq-item a {
    text-decoration: none;
    color: var(--text-navy);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.2s;
}

.faq-item a:hover {
    background: var(--white);
    color: var(--link-blue);
}

.faq-item a::after {
    content: '→';
    margin-left: 12px;
    color: var(--link-blue);
}

/* ===== SINGLE FAQ CONTENT ===== */

/* FAQ Single Page Layout */
/* FAQ Single Page */
.faq-single-section h1 {
    margin-bottom: 20px;
    font-size: 32px;
}

/* TOC Buttons - Horizontal Layout */
.faq-toc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
    padding: 20px 0;
}

.toc-button {
    display: inline-block;
    padding: 5px 10px;
    background: #001f3f; /* Dark blue */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.toc-button:hover {
    background: #0033cc;
}

.toc-button .arrow {
    margin-left: 5px;
}

/* Main Content */
.faq-content {
    margin: 40px 0;
    line-height: 1.6;
}

.faq-content h2,
.faq-content h3,
.faq-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #001f3f;
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}



/*.faq-content h1,
.faq-content h2,
.faq-content h3,
.faq-content h4,
.faq-content h5,
.faq-content h6 {
    color: var(--text-navy);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.faq-content p {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.faq-content a {
    color: var(--link-blue);
    text-decoration: none;
}

.faq-content a:hover {
    text-decoration: underline;
}*/


/* ===== RELATED TOPICS (Single FAQ Page) ===== */

.faq-related {
    background-color: var(--bg-light-blue);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
}

.faq-related h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-navy);
    margin: 0 0 30px;
}

/* ===== Bread Crumbs === */
.faq-breadcrumbs{
    margin-bottom:25px;
    font-size:14px;
    color:#666;
}

.faq-breadcrumbs a{
    color:#0052cc;
    text-decoration:none;
}

.faq-breadcrumbs span{
    margin:0 8px;
    color:#999;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .faq-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-list {
        grid-template-columns: 1fr;
    }

    .faq-recent-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 30px 16px;
    }

    .faq-container > h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .faq-cat h3 {
        font-size: 14px;
    }

    .faq-cat p {
        font-size: 12px;
    }

    .faq-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .faq-secondary-section {
        padding: 30px 20px;
    }

    .faq-categories-secondary {
        grid-template-columns: 1fr;
    }

    .faq-recent-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .faq-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-recent-section {
        padding: 30px 20px;
        margin: 40px 0;
    }
     .faq-single-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .faq-toc-sidebar {
        position: static;
        width: 100%;
        order: -1; /* Show TOC before content on mobile */
    }
    
    .faq-main-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .faq-container {
        padding: 20px 12px;
    }

    .faq-container > h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    #faq-search-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .faq-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .faq-cat h3 {
        font-size: 15px;
    }

    .faq-cat p {
        font-size: 13px;
    }

    .faq-recent-title {
        font-size: 20px;
    }

    .faq-item a {
        padding: 12px 14px;
        font-size: 14px;
    }
}

