/* 
 * Exam Technique Excellence - Main Stylesheet
 * Central CSS for all pages
 */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #606c71;
}

/* ===== HEADER STYLES ===== */
.page-header {
    color: #fff;
    text-align: center;
    background-color: #159957;
    background-image: linear-gradient(120deg, #155799, #159957);
    padding: 3rem 4rem 2rem 4rem;
}

.project-name {
    margin-top: 0;
    margin-bottom: 0.1rem;
    font-size: 3.25rem;
    font-weight: normal;
}

.project-tagline {
    margin-bottom: 2rem;
    font-weight: normal;
    opacity: 0.7;
    font-size: 1.25rem;
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
    text-align: center;
    padding: 0.75rem 0;
}

.nav-menu-inner {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 0.3rem;
}

.nav-menu a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0.2rem;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Dropdown menu styles */
.nav-item {
    display: inline-block;
    position: relative;
}

.nav-item > a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0.2rem;
}

.nav-item > a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(21, 87, 153, 0.98);
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 0.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Create invisible bridge between nav item and dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0;
    margin: 0;
}

.dropdown-menu a:first-child {
    border-radius: 0.3rem 0.3rem 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 0.3rem 0.3rem;
}

.dropdown-menu a:hover {
    background: rgba(21, 153, 87, 0.9);
    color: white;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    border-style: solid;
    border-width: 1px;
    border-radius: 0.3rem;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-decoration: none;
    margin: 0 0.5rem;
}

.btn:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn + .btn {
    margin-left: 1rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 64rem;
    padding: 2rem 4rem;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== PAGE NAVIGATION (for exam technique pages) ===== */
.page-nav {
    background: #f3f6fa;
    border: 1px solid #d1dce5;
    border-radius: 0.3rem;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    margin-top: 4rem;
    text-align: center;
    position: sticky;
    top: 1rem;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-nav a {
    display: inline-block;
    color: #159957;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    font-weight: 600;
    border-radius: 0.3rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.page-nav a:hover {
    background: #159957;
    color: white;
    border-color: #159957;
}

.main-content h1,
.main-content h2,
.main-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: normal;
    color: #159957;
}

.main-content h1 {
    font-size: 2.25rem;
}

.main-content h2 {
    font-size: 1.75rem;
}

.main-content h3 {
    font-size: 1.25rem;
}

.main-content p {
    margin-bottom: 1em;
}

.main-content ul {
    margin-bottom: 1.5em;
    margin-left: 2rem;
}

.main-content li {
    margin-bottom: 0.5em;
}

/* ===== FEATURE GRID (Homepage) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 0.3rem;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    min-height: 200px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #159957;
}

.feature-card h3 {
    color: #159957;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    display: none;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== EXAM TECHNIQUE PAGE ===== */
.skill-card {
    background: #f3f6fa;
    border: 1px solid #d1dce5;
    border-left: 4px solid #159957;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.3rem;
}

.skill-card h3 {
    margin-top: 0;
    color: #159957;
    font-weight: 600;
}

.skill-card ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.skill-card li {
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.beginner {
    background: #d4edda;
    color: #155724;
}

.badge.intermediate {
    background: #fff3cd;
    color: #856404;
}

.badge.advanced {
    background: #cce5ff;
    color: #004085;
}

/* ===== EXAM PRACTICE PAGE ===== */
.practice-question {
    background: #f3f6fa;
    border: 1px solid #d1dce5;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.question-header h3 {
    color: #159957;
    font-size: 1.25rem;
    margin: 0;
}

.question-marks {
    background: #159957;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.question-text {
    background: white;
    padding: 1.5rem;
    border-radius: 0.3rem;
    margin-bottom: 1rem;
    border-left: 4px solid #159957;
}

.answer-area {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #d1dce5;
    border-radius: 0.3rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.answer-area:focus {
    outline: none;
    border-color: #159957;
    box-shadow: 0 0 0 3px rgba(21, 153, 87, 0.1);
}

.submit-button {
    background: #159957;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.submit-button:hover {
    background: #128f4e;
}

.quiz-option {
    background: white;
    border: 1px solid #d1dce5;
    padding: 1rem;
    border-radius: 0.3rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-option:hover {
    border-color: #159957;
    background: #f9f9f9;
}

.quiz-option.selected {
    border-color: #159957;
    background: #e8f5e9;
}

/* ===== MARKING PRACTICE PAGE ===== */
.question-box {
    background: #f3f6fa;
    border-left: 4px solid #159957;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
}

.marking-exercise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.student-answer {
    background: #fff9e6;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 0.3rem;
}

.mark-scheme {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 0.3rem;
}

.mark-input {
    margin-top: 1rem;
}

.mark-input input {
    padding: 0.5rem;
    border: 1px solid #d1dce5;
    border-radius: 0.3rem;
    width: 100px;
    font-size: 1rem;
}

.feedback-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0.3rem;
    display: none;
}

/* ===== PROGRESS TRACKER PAGE ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(120deg, #155799, #159957);
    color: white;
    padding: 2rem;
    border-radius: 0.3rem;
    text-align: center;
}

.stat-card .number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    font-size: 1rem;
    opacity: 0.9;
}

.progress-item {
    margin-bottom: 2rem;
}

.progress-item h3 {
    color: #159957;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(120deg, #155799, #159957);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    background: #f3f6fa;
    border-left: 4px solid #159957;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.3rem;
}

/* ===== UPLOAD & ASSESS PAGE ===== */
.upload-area {
    border: 3px dashed #159957;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0.3rem;
    background: #f3f6fa;
    cursor: pointer;
    transition: all 0.3s;
    margin: 2rem 0;
}

.upload-area:hover {
    background: #e8f0fe;
    border-color: #128f4e;
}

.upload-area .icon {
    font-size: 4rem;
    color: #159957;
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #159957;
    margin-bottom: 0.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    background: #f3f6fa;
    border-left: 4px solid #159957;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.3rem;
}

/* ===== DISCUSSION PAGE ===== */
.topic-card {
    background: #f3f6fa;
    border: 1px solid #d1dce5;
    border-left: 4px solid #159957;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.topic-card:hover {
    background: #e8f0fe;
    transform: translateX(5px);
}

.topic-card h3 {
    color: #159957;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.topic-card p {
    color: #606c71;
    font-size: 0.9rem;
}

.chat-area {
    background: #f9f9f9;
    border: 1px solid #d1dce5;
    border-radius: 0.3rem;
    padding: 1.5rem;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.chat-message {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 0.3rem;
    margin-bottom: 1rem;
    max-width: 80%;
}

.chat-message.user {
    background: #e8f5e9;
    margin-left: auto;
}

.chat-message .sender {
    font-weight: bold;
    color: #159957;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.chat-input-area {
    display: flex;
    gap: 1rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1dce5;
    border-radius: 0.3rem;
    font-size: 1rem;
}

.send-button {
    background: #159957;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.send-button:hover {
    background: #128f4e;
}

/* ===== ABOUT PAGE ===== */
.intro-section {
    background: #f3f6fa;
    border: 1px solid #d1dce5;
    border-left: 4px solid #159957;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
}

.intro-section p {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ===== KEY CONCEPTS PAGE ===== */
/* Sticky section navigation for Key Concepts */
.header-nav {
    text-align: center;
    padding: 0.75rem 0;
}

.header-nav-inner {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 0.3rem;
}

.header-nav a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0.2rem;
}

.header-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.concept-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border-bottom: 3px solid #e0e0e0;
}

.concept-section:nth-child(odd) {
    background: #ffffff;
}

.concept-section:nth-child(even) {
    background: #f9f9f9;
}

.section-content {
    max-width: 64rem;
    width: 100%;
}

.section-content h2 {
    font-size: 2.5rem;
    color: #159957;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

.section-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #606c71;
    line-height: 1.8;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.topic-card {
    background: white;
    border: 1px solid #d1dce5;
    border-left: 4px solid #159957;
    padding: 1.5rem;
    border-radius: 0.3rem;
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-left-width: 6px;
}

.topic-card h3 {
    color: #159957;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.topic-card p {
    font-size: 1rem;
    margin: 0;
    color: #606c71;
}

.topic-card ul {
    margin-top: 1rem;
    margin-left: 1.5rem;
    color: #606c71;
}

.topic-card li {
    margin-bottom: 0.5rem;
}

/* Section-specific colors for Key Concepts */
#introduction .topic-card {
    border-left-color: #155799;
}

#introduction h2,
#introduction .topic-card h3 {
    color: #155799;
}

#microeconomics .topic-card {
    border-left-color: #159957;
}

#macroeconomics .topic-card {
    border-left-color: #e67e22;
}

#macroeconomics h2,
#macroeconomics .topic-card h3 {
    color: #e67e22;
}

#international .topic-card {
    border-left-color: #9b59b6;
}

#international h2,
#international .topic-card h3 {
    color: #9b59b6;
}

/* ===== FOOTER ===== */
.site-footer {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: solid 1px #eff0f1;
    text-align: center;
    color: #819198;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 64em) {
    .page-header {
        padding: 3rem 2rem 2rem 2rem;
    }

    .project-name {
        font-size: 2.25rem;
    }

    .project-tagline {
        font-size: 1rem;
    }

    .main-content {
        padding: 2rem 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .marking-exercise {
        grid-template-columns: 1fr;
    }

    .concept-section {
        padding: 3rem 2rem;
    }

    .section-content h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 42em) {
    .page-header {
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .project-name {
        font-size: 1.75rem;
    }

    .project-tagline {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 2rem 1rem;
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-menu a {
        padding: 0.4rem 0.75rem;
        margin: 0.2rem;
        font-size: 0.85rem;
    }

    .concept-section {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .section-content h2 {
        font-size: 1.75rem;
    }

    .section-content p {
        font-size: 1rem;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
