/**
 * Pollster Education - Study Abroad GPT & Answer Pages Styling
 * Clean, modern, luxury design for AI advisor and QA knowledge base
 */

/* Hero Container */
.pe-gpt-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #2e266d 100%);
    border-radius: 20px;
    padding: 44px 36px 48px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25);
}

.pe-gpt-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 134, 52, 0.25) 0%, rgba(245, 134, 52, 0) 70%);
    pointer-events: none;
}

.pe-gpt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f58634;
    background: rgba(245, 134, 52, 0.15);
    border: 1px solid rgba(245, 134, 52, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pe-gpt-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .pe-gpt-hero {
        padding: 30px 20px 36px;
        border-radius: 16px;
    }
    .pe-gpt-title {
        font-size: 24px;
    }
}

.pe-gpt-sub {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 680px;
    margin-bottom: 26px;
}

/* Modern AI Search Bar */
.pe-search-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 10;
}

.pe-search-form {
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
}

.pe-search-input {
    border: none !important;
    box-shadow: none !important;
    padding: 12px 16px;
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
    flex-grow: 1;
    background: transparent;
    border-radius: 8px;
}

.pe-search-input:focus {
    outline: none;
}

.pe-search-input::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

.pe-mic-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pe-mic-btn:hover {
    color: #f58634;
    background: #fff8f1;
}

.pe-mic-btn.listening {
    color: #ef4444;
    animation: micPulse 1.2s infinite ease-in-out;
}

@keyframes micPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.pe-search-btn {
    background: linear-gradient(135deg, #f58634 0%, #e07324 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 134, 52, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pe-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 134, 52, 0.45);
    color: #ffffff;
}

/* Quick Suggestion Chips */
.pe-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.pe-chips-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.pe-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.pe-chip:hover {
    background: #f58634;
    border-color: #f58634;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Suggestions Dropdown */
.suggestions-box {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15);
    list-style: none;
    padding: 6px;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.suggestions-box li {
    margin-bottom: 2px;
}

.suggestions-box li a,
.suggestion-item {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}

.suggestions-box li a:hover,
.suggestion-item:hover {
    background: #fff8f1;
    color: #f58634;
    padding-left: 16px;
}

/* Live Response Card */
#responseBox {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    padding: 24px;
    margin-bottom: 30px;
}

/* 2-Column QA Grid on Main Page */
.pe-qa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 36px;
}

@media (max-width: 991px) {
    .pe-qa-grid {
        grid-template-columns: 1fr;
    }
}

.pe-qa-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 22px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.pe-qa-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.pe-qa-question {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.18s ease;
}

.pe-qa-card:hover .pe-qa-question {
    color: #f58634;
}

.pe-qa-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.pe-qa-snippet {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 14px;
    flex-grow: 1;
}

.pe-qa-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #f58634;
}

.pe-qa-card:hover .pe-qa-footer i {
    transform: translateX(4px);
}

.pe-qa-footer i {
    transition: transform 0.2s ease;
}

/* ==========================================================================
   Details / Answer Page Styling (answer.php)
   ========================================================================== */

.pe-ans-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 34px 38px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767px) {
    .pe-ans-card {
        padding: 22px 18px;
    }
}

.pe-ans-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

@media (max-width: 767px) {
    .pe-ans-title {
        font-size: 21px;
    }
}

.pe-ans-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.pe-ans-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Content Area inside Answer */
.pe-ans-content {
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
}

.pe-ans-heading {
    font-weight: 700;
    color: #1e1b4b;
    margin-top: 28px;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid #f58634;
    line-height: 1.35;
}

.pe-ans-h1, .pe-ans-h2 {
    font-size: 20px;
}

.pe-ans-h3, .pe-ans-h4 {
    font-size: 17px;
}

.pe-ans-p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 16px;
}

.pe-ans-list,
.pe-ans-numlist {
    margin-top: 6px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.pe-ans-list {
    list-style: none;
    padding-left: 0;
}

.pe-ans-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    line-height: 1.6;
    color: #334155;
}

.pe-ans-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f58634;
}

.pe-ans-list li strong,
.pe-ans-numlist li strong {
    color: #0f172a;
    font-weight: 700;
}

.pe-ans-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 24px 0;
}

.pe-ans-link {
    color: #f58634;
    text-decoration: underline;
    font-weight: 600;
}

/* Answer Sidebar Cards */
.pe-sidebar-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    margin-bottom: 22px;
}

.pe-sidebar-counsel-card {
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 60%, #2e266d 100%);
    border-radius: 16px;
    padding: 26px 22px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.25);
    margin-bottom: 22px;
}

.pe-sidebar-counsel-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 134, 52, 0.25) 0%, rgba(245, 134, 52, 0) 70%);
}

.pe-sidebar-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pe-sidebar-desc {
    font-size: 13px;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.pe-sidebar-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.pe-sidebar-benefit i {
    color: #f58634;
    font-size: 15px;
}

.pe-sidebar-btn {
    background: linear-gradient(135deg, #f58634 0%, #e07324 100%);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(245, 134, 52, 0.35);
    transition: all 0.2s ease;
    margin-top: 14px;
    text-decoration: none;
}

.pe-sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 134, 52, 0.5);
    color: #ffffff !important;
}

/* ==========================================================================
   Framed Well-Mannered Answer & Response Formatting
   ========================================================================== */

.pe-ans-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.pe-ans-section-header i {
    color: #f58634 !important;
}

.pe-ans-section-header h3,
.pe-ans-section-header .pe-ans-h3,
.pe-ans-section-header .pe-framed-h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.pe-ans-points {
    list-style: none;
    padding-left: 0;
    margin-bottom: 22px;
}

.pe-ans-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.65;
    font-size: 15px;
    color: #334155;
}

.pe-ans-points li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f58634;
}

.pe-point-badge {
    font-weight: 700;
    color: #1e1b4b;
    margin-right: 4px;
}

.pe-point-text {
    color: #334155;
}

/* Sample Answer Callout Box */
.pe-sample-box {
    background: #fff8f1;
    border-left: 4px solid #f58634;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 18px 0 24px 0;
    box-shadow: 0 4px 12px rgba(245, 134, 52, 0.08);
}

.pe-sample-label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #f58634;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.pe-sample-quote {
    font-size: 14.5px;
    font-style: italic;
    color: #431407;
    line-height: 1.65;
}

/* Counselling & Guidance Callout Card */
.pe-counsel-callout {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 26px;
    box-shadow: 0 10px 25px -5px rgba(245, 134, 52, 0.12);
}

.pe-counsel-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 134, 52, 0.12);
    color: #f58634;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
