/* =============================================
   THE REASONS WHY — Main Stylesheet
   Based on original Project 2025 design
   ============================================= */

/* Reset */
* { box-sizing: border-box; }

/* Body with faded Constitution background */
body {
    font-family: Arial, sans-serif;
    background-image: url('../images/backgrounds/US_Constitution_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(255, 255, 255, 0.7);
    background-blend-mode: overlay;
    margin: 0;
    padding: 0;
}

/* ============ FIXED HEADER ============ */
.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #333;
    padding: 20px 0 10px;
    text-align: center;
}

.header-background h1 {
    color: #ff5733;
    font-size: 2.5rem;
    margin: 0 0 4px 0;
    line-height: 1;
}

.header-subtitle {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin-top: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* ---- Quote Panels ---- */
.quote-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    max-height: 150px;
    overflow: hidden;
    z-index: 2;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
    color: white;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
}

.quote-panel-left  { left: 20px; }
.quote-panel-right { right: 20px; text-align: left; }

.quote-slide {
    display: none;
    line-height: 1.5;
    word-wrap: break-word;
}

.quote-slide.active { display: block; }

.quote-author {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #c8a84b;
    font-style: italic;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.quote-slide.active { animation: fadeIn 0.8s ease; }

/* ---- Nav inside header ---- */
.header-background .nav {
    justify-content: center;
    padding: 6px 0 4px;
}

.header-background .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 14px;
    font-size: 0.88rem;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-background .nav-link:hover {
    background-color: #555;
    border-radius: 5px;
}

.nav-link-lies {
    color: #ff4444 !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 8px rgba(255,68,68,0.5);
}

.nav-link-lies:hover {
    background-color: #8b0000 !important;
    border-radius: 5px;
}

/* ============ MAIN CONTENT ============ */
main {
    margin-top: 140px; /* clears fixed header */
    padding: 20px;
    background-color: #fff;
    min-height: 980px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    width: 100%;
    color: #222;
}

.container.my-4 {
    max-width: 1000px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    padding: 20px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    background-color: white;
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 10px;
    border-radius: 3px;
}

.breadcrumb-item a {
    color: blue;
    text-decoration: none;
}

.breadcrumb-item a:hover { text-decoration: underline; }

.breadcrumb-item.active { color: red; }

.breadcrumb-item + .breadcrumb-item::before { color: #666; }

/* ============ CENTERED IMAGE ============ */
.centered-image {
    display: block;
    margin: 0 auto;
    height: 980px;
    max-width: 100%;
}

/* ============ CONTACT FORM ============ */
.contact-form [class*="col"] { padding: 0 5px; }
.contact-form .row { margin: 0 -5px; }
.contact-form input:not([type="submit"]),
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    color: black;
    border: 2px solid #393c48;
    background: transparent;
}
.contact-form input:not([type="submit"]):hover,
.contact-form input:not([type="submit"]):focus,
.contact-form textarea:hover,
.contact-form textarea:focus {
    border-color: #009ad8;
}
.contact-form textarea { min-height: 150px; }
.contact-form .text-right { text-align: right; }

/* ============ FOOTER ============ */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    width: 100%;
    font-size: 0.85rem;
}

/* ============ WELCOME MODAL ============ */
.welcome-modal-content {
    background: #12121e;
    border: 2px solid #c8a84b;
    border-radius: 6px;
    color: #e8e0d0;
    font-family: Arial, sans-serif;
}

.welcome-modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
    border-bottom: 2px solid #c8a84b;
    padding: 1.5rem 2rem;
}

.welcome-modal-header .modal-title {
    font-weight: 700;
    color: #c8a84b;
    letter-spacing: 1px;
    font-size: 1.5rem;
}

.welcome-modal-body { padding: 2rem; line-height: 1.8; }

.welcome-modal-footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(200,168,75,0.3);
    padding: 1rem 2rem;
}

.btn-modal-close {
    background: #8b0000;
    border: 2px solid #c8a84b;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 40px;
    border-radius: 3px;
    transition: background 0.25s, color 0.25s;
}

.btn-modal-close:hover { background: #c8a84b; color: #0a0a0a; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .quote-panel { display: none; }
    .header-background h1 { font-size: 1.8rem; }
    main { margin-top: 110px; }
}

/* ============ MODAL CONTENT STYLES ============ */
.modal-reason {
    margin-bottom: 1.2rem;
}

.reason-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #c8a84b;
    margin-bottom: 0.75rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(200,168,75,0.3);
}

.welcome-modal-body ul {
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

.welcome-modal-body ul li {
    margin-bottom: 0.55rem;
    line-height: 1.65;
    color: #ddd;
    font-size: 0.92rem;
}

.welcome-modal-body p {
    color: #ddd;
    font-size: 0.93rem;
    margin-bottom: 0.75rem;
}

.modal-divider {
    border-color: rgba(200,168,75,0.25);
    margin: 1.4rem 0;
}

.modal-source {
    font-size: 0.78rem !important;
    color: #888 !important;
    margin-top: 0.5rem;
}

.modal-source a {
    color: #c8a84b;
    text-decoration: none;
}

.modal-source a:hover {
    text-decoration: underline;
}

.modal-closing {
    background: rgba(139,0,0,0.15);
    border-left: 3px solid #8b0000;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.95rem !important;
    color: #eee !important;
    line-height: 1.7;
}

/* ============ TOPIC INDEX PAGES (Goals-style) ============ */
.section-heading {
    font-size: 1.8rem;
    font-weight: bold;
    color: #8b0000;
    border-bottom: 2px solid #8b0000;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.section-intro {
    font-size: 1rem;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.7;
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.topic-card {
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.topic-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.topic-card h3 a {
    color: #8b0000;
    text-decoration: none;
    font-weight: bold;
}

.topic-card h3 a:hover {
    text-decoration: underline;
    color: #c8a84b;
}

.topic-card p {
    color: #444;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ============ REASON FULL PAGES ============ */
.reason-section {
    margin-bottom: 1.5rem;
    color: #222;
}

.reason-section h3.reason-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b0000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.reason-section ul {
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

.reason-section ul li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    color: #333;
    font-size: 0.93rem;
}

.reason-section p {
    color: #333;
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.reason-divider {
    border-color: #ccc;
    margin: 1.8rem 0;
}

.page-source {
    font-size: 0.78rem !important;
    color: #888 !important;
}

.page-source a {
    color: #8b0000;
    text-decoration: none;
}

.page-source a:hover { text-decoration: underline; }

.reason-closing {
    background: #fff8e1;
    border-left: 4px solid #8b0000;
    padding: 14px 18px;
    border-radius: 3px;
    font-size: 0.95rem;
    color: #222;
    line-height: 1.75;
    margin-top: 1rem;
}

/* ============ LIES LIES LIES SECTION ============ */
.lll-claim-box {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-left: 4px solid #b30000;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 16px 0;
    font-style: italic;
    color: #7a0000;
    font-size: 0.93rem;
    line-height: 1.7;
}

.lll-claim-box::before {
    content: "❝ THE CLAIM: ";
    font-style: normal;
    font-weight: bold;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
    color: #b30000;
}

.lll-fact-box {
    background: #f0fff4;
    border: 1px solid #b2dfcb;
    border-left: 4px solid #1a7a49;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: #145233;
}

.lll-fact-box::before {
    content: "✔ THE FACTS: ";
    font-weight: bold;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
    color: #1a7a49;
}

.lll-lie-number {
    display: inline-block;
    background: #8b0000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 2px;
}

/* Stats Grid — Economic Why Bad page */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-box {
    background: #1a1a2e;
    border: 1px solid #c0392b;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #e74c3c;
    line-height: 1.1;
}
.stat-label {
    font-size: 0.78rem;
    color: #ccc;
    margin-top: 0.4rem;
    line-height: 1.4;
}
