* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy-blue: #0A2342;
    --light-blue: #4F81C7;
    --white: #FFFFFF;
    --grey: #F2F2F2;
    --text-dark: #1a1a1a;
    --border: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--grey);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* HOME PAGE STYLING */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #4f46e5, #3b82f6);
  color: white;
  border-radius: 12px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.primary-btn {
  background: #fbbf24;
  color: #000;
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
}

.primary-btn:hover {
  background: #f59e0b;
}

.info-section, .why-section, .how-works, .user-benefits, .cta-section {
  color:var(--text-dark);
  padding: 30px 20px;
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.feature-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.feature-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

ul {
  list-style-type: none;
  margin-left: 20px;
}

.cta-section {
  text-align: center;
}


/* PAGE TRANSITIONS */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* HEADER */
.header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* text-align: center; */
}

.logo svg {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-right{
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    cursor: pointer;
}
.nav-right:hover{
    font-size: 22px;
    color: #1a1a1a;
}

/* HOME PAGE */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.home-content h2 {
  color: #0A2342;
  margin-bottom: 15px;
}
.home-content p {
  color: #0A2342;
  margin-bottom: 15px;
}


/* BUTTONS */
.btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #081a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.3);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-secondary:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 100px;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--navy-blue);
}

.version {
    color: #999;
    font-size: 0.85rem;
}

/* TEST INTERFACE */
.test-header {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--navy-blue);
}

.timer {
    color: var(--light-blue);
}

.progress-bar {
    height: 8px;
    background-color: var(--grey);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--light-blue);
    transition: width 0.3s ease;
    width: 0%;
}

/* QUESTION CONTAINER */
.question-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.question-text {
    font-size: 1.2rem;
    color: var(--navy-blue);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 500;
}

.options-container {
    margin-bottom: 40px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--grey);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.option-row:hover {
    border-color: var(--light-blue);
}

.option-row.eliminated {
    opacity: 0.5;
    text-decoration: line-through;
}

.option-row.selected {
    border-color: var(--navy-blue);
    background-color: #e8f0ff;
}

.option-label {
    font-weight: 700;
    color: var(--navy-blue);
    min-width: 30px;
}

.option-text {
    flex: 1;
    color: var(--text-dark);
}

.option-controls {
    display: flex;
    gap: 15px;
}

.checkbox-wrapper, .radio-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-wrapper:hover, .radio-wrapper:hover {
    background-color: rgba(79, 129, 199, 0.1);
}

.checkbox-wrapper input, .radio-wrapper input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.control-label {
    font-size: 0.9rem;
    color: #555;
    user-select: none;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* RESULT DASHBOARD */
.result-header {
    text-align: center;
    padding: 40px 0;
}

.result-header h1 {
    font-size: 2.5rem;
    color: var(--navy-blue);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 5px;
}

.metric-scale {
    font-size: 0.8rem;
    color: #999;
}

/* BIAS REPORT */
.bias-report, .details-section, .recommendations {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bias-report h2, .details-section h2, .recommendations h2 {
    color: var(--navy-blue);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.bias-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.bias-item {
    padding: 20px;
    background-color: var(--grey);
    border-radius: 6px;
    border-left: 4px solid var(--light-blue);
}

.bias-name {
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 5px;
}

.bias-level {
    font-size: 1.2rem;
    font-weight: 700;
}

.bias-level.high {
    color: #d9534f;
}

.bias-level.moderate {
    color: #f0ad4e;
}

.bias-level.low {
    color: #5cb85c;
}

/* DETAILS TABLE */
.details-table {
    overflow-x: auto;
}

.details-table table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th, .details-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.details-table th {
    background-color: var(--grey);
    color: var(--navy-blue);
    font-weight: 600;
}

.details-table td {
    color: #555;
}

/* RECOMMENDATIONS */
.recommendations-content {
    line-height: 1.8;
}

.recommendation-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--grey);
    border-radius: 6px;
    border-left: 4px solid var(--light-blue);
}

.recommendation-item strong {
    color: var(--navy-blue);
}

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--navy-blue);
}

#modalBody h2 {
    color: var(--navy-blue);
    margin-bottom: 20px;
}

#modalBody p {
    margin-bottom: 15px;
    line-height: 1.8;
}

#modalBody ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

#modalBody li {
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .question-container {
        padding: 20px;
    }
    
    .option-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* NAVBAR for BLOG PAGE (same as home) */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #0A2342;
}

.navbar-links a {
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
    color: #0A2342;
    font-weight: 600;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: #4F81C7;
}

/* BLOG PAGE LAYOUT */
.blog-list-container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.blog-list-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #444;
    font-size: 16px;
    margin-bottom: 30px;
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.blog-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    transition: 0.25s ease;
    color: black;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.blog-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 15px;
    color: #555;
}

.read-more {
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
    color: #4F81C7;
}
/*************************************
   GLOBAL TYPOGRAPHY + COLORS
**************************************/
body {
    font-family: 'Inter', Arial, sans-serif;
    color: #0A2342;
    background: #F5F7FA;
    line-height: 1.6;
}

/*************************************
   NAVBAR (SAME ON ALL PAGES)
**************************************/
.header {
    width: 100%;
    background: #ffffff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0A2342;
    font-size: 22px;
}

.navbar-links a,
.nav-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #0A2342;
    font-weight: 600;
    font-size: 17px;
    transition: 0.2s ease;
}

.navbar-links a:hover,
.nav-right a:hover,
.navbar-links a.active {
    color: #4F81C7;
}

/*************************************
   BLOG INDEX PAGE GRID
**************************************/
.blog-list-container {
    max-width: 1100px;
    margin: auto;
    padding: 30px 20px;
}

.blog-list-container h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #475569;
    margin-bottom: 25px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    color: #0A2342;
    transition: 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.blog-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card p {
    font-size: 15px;
    color: #475569;
}

.read-more {
    margin-top: 12px;
    display: inline-block;
    color: #4F81C7;
    font-weight: 600;
}

/*************************************
   SINGLE BLOG PAGE
**************************************/
.blog-container {
    max-width: 900px;
    background: #ffffff;
    padding: 40px 30px;
    margin: auto;
    border-radius: 14px;
    border: 1px solid #E2E8F0;
    margin-bottom: 40px;
}

.blog-container h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-container h2 {
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.blog-container h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.blog-container p,
.blog-container ul {
    font-size: 17px;
    color: #334155;
}

.meta {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 25px;
}

/*************************************
   BUTTON (UNIFIED DESIGN)
**************************************/
.primary-btn {
    background: #4F81C7;
    color: white;
    padding: 12px 22px;
    font-size: 17px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
    transition: 0.25s ease;
}

.primary-btn:hover {
    background: #3B6AA0;
}
.yellow-btn {
    background: #fbbf24 !important;
    color: #000 !important;
}

.yellow-btn:hover {
    background: #f59e0b !important;
}
.footer {
    text-align: center;
    padding: 30px;
    background: #f2f4f7;
    color: #333;
    margin-top: 40px;
}
.footer a {
    color: #0A2342;
    text-decoration: none;
}
.page-container {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.page-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-container h2 {
    margin-top: 28px;
    font-size: 24px;
    color: #0A2342;
}

.page-container ul {
    list-style: disc;
    padding-left: 20px;
}

.page-container p {
    color: #444;
    font-size: 17px;
    line-height: 1.6;
}

.subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 18px;
}
/* CONTACT PAGE STYLE */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-info {
    background: #f2f4f7;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #d9e1eb;
    color: #333;
}

.contact-info h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-info .email {
    font-size: 18px;
    font-weight: bold;
    color: #0A2342;
}

.contact-form-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #d9e1eb;
}

.contact-form-box h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.contact-form button {
    background: #4f81c7;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.contact-form button:hover {
    background: #3a6eb0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.blog-card {
    display: block;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #0A2342;
    transition: 0.2s ease;
}

.blog-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #0A2342;
}

.blog-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4rem;
}

.blog-card:hover {
    border-color: #4F81C7;
    transform: translateY(-4px);
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.result-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.big-score {
    font-size: 48px;
    font-weight: 700;
    color: #4F81C7;
}
.blog-index {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.blog-title {
  text-align: center;
  color: #0A2342;
  margin-bottom: 10px;
}

.blog-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.blog-card h2 a {
  text-decoration: none;
  color: #0A2342;
}

.blog-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #4F81C7;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}
.instruction-start {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.primary-btn.yellow-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn.yellow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
