/*
Theme Name: QuestionAm Custom Q&A Theme
Theme URI: https://questionam.com/
Author: Custom Developer
Description: Brainly style Q&A layout with Forced Sticky Header, Customizable Borders, and Meta Layouts.
Version: 1.5.0
Text Domain: questionam-custom
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #1e293b; background-color: #f8fafc; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* FORCED STICKY FIXED HEADER BLOCK */
.sticky-header-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 99999 !important;
    background: #ffffff;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TOP BAR */
.top-bar { background-color: #0f172a; color: #cbd5e1; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #1e293b; }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; }
.top-menu-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.top-menu-nav li { display: inline-block; }
.top-menu-nav a { color: #cbd5e1; font-size: 13px; text-decoration: none; }
.top-menu-nav a:hover { color: #ffffff; }

/* BRANDING HEADER */
.brand-header { background: #ffffff; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.brand-container { display: flex; justify-content: space-between; align-items: center; }
.site-branding img { max-height: 50px; width: auto; display: block; }
.site-logo-text { font-size: 26px; font-weight: 800; color: #2563eb; text-decoration: none; letter-spacing: -0.5px; }
.ask-btn { background: #2563eb; color: #ffffff; padding: 10px 22px; border-radius: 25px; font-weight: 700; font-size: 14px; display: inline-block; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); text-decoration: none; }
.ask-btn:hover { background: #1d4ed8; text-decoration: none; }

/* MAIN NAVIGATION BAR */
.main-navigation-bar { background: #ffffff; border-bottom: 2px solid #e2e8f0; }
.nav-container { display: flex; align-items: center; }
.primary-navigation { width: 100%; }

ul.main-menu-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 30px; }
ul.main-menu-nav > li { display: inline-block; position: relative; padding: 10px 0; }
ul.main-menu-nav > li > a { font-size: 14px; font-weight: 700; color: #0f172a; text-transform: uppercase; letter-spacing: 0.3px; text-decoration: none; }
ul.main-menu-nav > li > a:hover { color: #2563eb; text-decoration: none; }

/* SEARCH HERO SECTION */
.search-hero { background: #ffffff; padding: 35px 0; border-bottom: 1px solid #e2e8f0; text-align: center; }
.search-container { max-width: 750px; margin: 0 auto; }
.search-hero h2 { font-size: 24px; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
.search-form { display: flex; gap: 12px; }
.search-field { width: 100%; padding: 14px 22px; border: 2px solid #cbd5e1; border-radius: 30px; font-size: 15px; outline: none; }
.search-field:focus { border-color: #2563eb; }
.search-submit { background: #0f172a; color: #ffffff; border: none; padding: 0 28px; border-radius: 30px; font-weight: 700; cursor: pointer; }

/* BOX BOXING LAYOUT FOR Q&A */
.q-card-box, .answer-card-box { 
    background: #ffffff; 
    border-radius: 12px; 
    padding: 28px; 
    margin-bottom: 24px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
}

.verified-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    flex-wrap: wrap;
}