/* ===== Ask the Rabbi - Public Styles ===== */

.askrabbi-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ===== Page Header ===== */
.askrabbi-header {
    text-align: center;
    margin-bottom: 30px;
}

.askrabbi-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.askrabbi-desc {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 16px;
}

.btn-ask {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    background: #d4af37;
    color: #fff;
    border: none;
    text-decoration: none;
    font-family: 'Heebo', sans-serif;
    transition: background 0.2s;
}

.btn-ask:hover {
    background: #b8941f;
    color: #fff;
}

/* ===== Submit Form ===== */
.askrabbi-form-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.askrabbi-form-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.askrabbi-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.askrabbi-form .form-group {
    margin-bottom: 16px;
}

.askrabbi-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.askrabbi-form .required {
    color: #dc3545;
}

.askrabbi-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Heebo', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.askrabbi-form .form-control:focus {
    border-color: #d4af37;
}

.askrabbi-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.askrabbi-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.askrabbi-form .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
}

.captcha-group {
    max-width: 300px;
}

.captcha-input {
    max-width: 120px;
}

.btn-submit {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    background: #d4af37;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #b8941f;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Search Bar ===== */
.askrabbi-search-bar {
    margin-bottom: 20px;
}

.askrabbi-search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.askrabbi-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Heebo', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.askrabbi-search-input:focus {
    border-color: #d4af37;
}

.askrabbi-search-btn {
    padding: 10px 24px;
    background: #d4af37;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: 'Heebo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.askrabbi-search-btn:hover {
    background: #b8941f;
}

/* ===== Section Title ===== */
.askrabbi-section-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

/* ===== Q&A Cards List ===== */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qa-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.qa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.qa-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.4;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.qa-card-question {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.qa-card-answer {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 10px;
}

.qa-card-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #adb5bd;
    flex-wrap: wrap;
}

.qa-category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(212, 175, 55, 0.12);
    color: #b8941f;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Q&A Grid (Related) ===== */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ===== Single Q&A View ===== */
.qa-single {
    max-width: 800px;
    margin: 0 auto;
}

.qa-single-question {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border-right: 4px solid #d4af37;
}

.qa-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d4af37;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.qa-question-title {
    font-size: 28px;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 12px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.qa-question-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.qa-meta {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #adb5bd;
    flex-wrap: wrap;
}

.qa-meta .meta-separator {
    color: #dee2e6;
}

.qa-single-answer {
    padding: 24px 0;
    margin-bottom: 24px;
}

.qa-answer-content {
    font-size: 19px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 16px;
}

.qa-answer-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 16px;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

.qa-answer-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-top: 32px;
    margin-bottom: 12px;
}

.qa-answer-content p {
    margin-bottom: 16px;
}

.qa-answer-content blockquote {
    border-right: 4px solid #d4af37;
    padding: 16px 24px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.qa-answer-content ul,
.qa-answer-content ol {
    padding-right: 24px;
    margin-bottom: 16px;
}

.qa-answer-content a {
    color: #d4af37;
    text-decoration: underline;
}

.qa-answerer {
    font-size: 14px;
    color: #6c757d;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

/* ===== Share Buttons ===== */
.qa-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.share-label {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.share-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-whatsapp {
    background: #25D366;
    color: #fff;
}

.share-facebook {
    background: #1877F2;
    color: #fff;
}

.share-twitter {
    background: #1DA1F2;
    color: #fff;
}

.share-copy {
    background: #e9ecef;
    color: #333;
}

/* ===== Related Questions ===== */
.qa-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.qa-related h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Frank Ruhl Libre', 'David Libre', serif;
}

/* ===== Pagination ===== */
.qa-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.pagination-link:hover {
    background: #f8f9fa;
}

.pagination-link.current {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* ===== Breadcrumbs ===== */
.askrabbi-container .breadcrumb {
    margin-bottom: 24px;
}

.askrabbi-container .breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #adb5bd;
    flex-wrap: wrap;
}

.askrabbi-container .breadcrumb li::after {
    content: '/';
    margin: 0 6px;
    color: #dee2e6;
}

.askrabbi-container .breadcrumb li:last-child::after {
    content: '';
    margin: 0;
}

.askrabbi-container .breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}

.askrabbi-container .breadcrumb a:hover {
    color: #d4af37;
}

.askrabbi-container .breadcrumb .active {
    color: #333;
}

/* ===== Empty State ===== */
.askrabbi-container .empty-state {
    text-align: center;
    color: #6c757d;
}

.askrabbi-container .empty-state h2,
.askrabbi-container .empty-state h3 {
    color: #2c3e50;
    margin-bottom: 12px;
}

.askrabbi-container .empty-state a {
    color: #d4af37;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .askrabbi-title {
        font-size: 26px;
    }

    .askrabbi-form .form-row {
        grid-template-columns: 1fr;
    }

    .qa-question-text {
        font-size: 18px;
    }

    .qa-answer-content {
        font-size: 16px;
    }

    .qa-grid {
        grid-template-columns: 1fr;
    }

    .qa-share {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .askrabbi-container {
        padding: 20px 16px;
    }

    .askrabbi-form-section {
        padding: 20px 16px;
    }

    .askrabbi-search-form {
        flex-direction: column;
    }
}
