
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* Prevents horizontal scrolling */
}






/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
    /* Fixed Light Theme - Professional Education Tool Colors */
    --primary-blue: #00487c;
    --primary-blue-light: #0066a1;
    --primary-blue-dark: #003d66;
    --accent-blue: #0078d4;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 72, 124, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 72, 124, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 72, 124, 0.2);
    
    /* AP Score Colors */
    --score-5: #9333ea; /* Purple */
    --score-4: #10b981; /* Green */
    --score-3: #3b82f6; /* Blue */
    --score-2: #f97316; /* Orange */
    --score-1: #ef4444; /* Red */
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    /* Removed padding-top since toggle is gone */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: clamp(28px, 5vw, 36px);
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    color: var(--text-secondary);
}

/* ========================================
   Calculator Layout - Two Column
   ======================================== */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
}

/* ========================================
   Input & Score Cards
   ======================================== */
.input-section, .results-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-card, .score-card, .ap-score-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

/* Hover effect for all cards */
.input-card:hover, .score-card:hover, .ap-score-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.section-title, .card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* ========================================
   Slider Styling
   ======================================== */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.value-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 40px;
    text-align: right;
}

.max-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, 
        var(--primary-blue) 0%, 
        var(--primary-blue) var(--slider-progress, 0%), 
        var(--border-color) var(--slider-progress, 0%), 
        var(--border-color) 100%);
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: 2px solid var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-blue-light);
}

/* ========================================
   Results Section Details
   ======================================== */
.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.score-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.score-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.total-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
}

.total-score {
    font-size: 28px;
    color: var(--primary-blue-dark);
}

/* ========================================
   AP Score Badge (Circular)
   ======================================== */
.ap-score-badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.ap-score-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Score-based color schemes */
.ap-score-card.score-5 { border-color: var(--score-5); background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, var(--bg-white) 100%); }
.ap-score-card.score-5 .ap-score-badge { background: var(--score-5); color: white; }
.ap-score-card.score-5 .ap-score-number { color: white; }

.ap-score-card.score-4 { border-color: var(--score-4); background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-white) 100%); }
.ap-score-card.score-4 .ap-score-badge { background: var(--score-4); color: white; }
.ap-score-card.score-4 .ap-score-number { color: white; }

.ap-score-card.score-3 { border-color: var(--score-3); background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-white) 100%); }
.ap-score-card.score-3 .ap-score-badge { background: var(--score-3); color: white; }
.ap-score-card.score-3 .ap-score-number { color: white; }

.ap-score-card.score-2 { border-color: var(--score-2); background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, var(--bg-white) 100%); }
.ap-score-card.score-2 .ap-score-badge { background: var(--score-2); color: white; }
.ap-score-card.score-2 .ap-score-number { color: white; }

.ap-score-card.score-1 { border-color: var(--score-1); background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-white) 100%); }
.ap-score-card.score-1 .ap-score-badge { background: var(--score-1); color: white; }
.ap-score-card.score-1 .ap-score-number { color: white; }

/* ========================================
   Footer & Responsive
   ======================================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 968px) {
    .calculator-layout { grid-template-columns: 1fr; }
    .container { padding-top: 30px; }
}

@media (max-width: 640px) {
    .ap-score-badge { width: 120px; height: 120px; }
    .ap-score-number { font-size: 56px; }
}




/* This handles the side-by-side view on desktop and vertical view on mobile */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for Desktop */
    gap: 30px;
}

/* Tablet and Mobile adjustments */
@media (max-width: 968px) {
    .calculator-layout {
        grid-template-columns: 1fr; /* Stack everything in one column */
        gap: 20px;
    }

    .container {
        padding: 20px 10px;
    }
}


@media (max-width: 640px) {
    .input-card, .score-card, .ap-score-card {
        padding: 20px; /* Reduce padding on small screens */
    }

    .header h1 {
        font-size: 24px; /* Smaller title for mobile */
    }
}
/* FAQ's Styling  */
/* ========================================
   FAQ Section - Fixed Responsive Green
   ======================================== */
/* ========================================
   FAQ Section - Clean White Theme
   ======================================== */
/* FAQ Mobile-Responsive White Theme */
.faq-section {
    width: 100%;
    padding: 60px 15px;
    background-color: #ffffff;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 24px 20px;
    background: #ffffff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    text-align: left;
    /* KEY FOR MOBILE RESPONSIVENESS */
    white-space: normal; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    background-color: #ffffff;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
}

/* Logic for opening the answer */
.faq-item.active .faq-answer {
    max-height: 1000px; /* High enough for text */
    padding-bottom: 24px;
}

.arrow {
    font-size: 12px;
    color: #2563eb;
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .faq-question { font-size: 16px; padding: 20px 15px; }
}