:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.25rem;
}

.main-nav ul {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Container spacing and widths */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section styling */
.calculator-sections,
.single-column,
.table-section,
.image-section,
.tips-section {
    width: 100%;
    margin: 2.5rem 0;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Unique section backgrounds */
.calculator-sections {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
}

.single-column {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border: 1px solid #e1effe;
}

.table-section {
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
    border: 1px solid #dcfce7;
}

.image-section {
    margin: 2rem 0;
}

.image-container {
    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.format-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem 0.75rem 0 0;
}

figcaption {
    padding: 1rem 1.5rem;
    color: var(--light-text);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
}

.tips-section {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text-color);
}

/* Tips Grid - Desktop View */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.tip-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.tip-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Tablet View (2 cards per row) */
@media (max-width: 1024px) and (min-width: 769px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile View (1 card per row) */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 100%;
        gap: 1rem;
    }
    
    .tip-card {
        width: 100%;
        margin: 20px 0px;
        padding: 1.5rem;
    }
    
    .tips-section {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .tips-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile View */
@media (max-width: 480px) {
    .tips-section {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .tips-grid {
        gap: 1rem;
    }
    
    .tip-card {
        padding: 1.25rem;
    }
}

function setupInput(input, maxQuestions) {
    const hint = document.createElement('span');
    hint.className = 'input-hint';
    
    const updateHint = (value, siblingValue) => {
        const total = value + siblingValue;
        const remaining = maxQuestions - total;
        
        if (total > maxQuestions) {
            hint.classList.add('error');
            hint.textContent = `❌ Exceeded maximum ${maxQuestions} questions!`;
            return false;
        } else if (total === maxQuestions) {
            hint.classList.add('success');
            hint.classList.remove('error');
            hint.textContent = `✅ All ${maxQuestions} questions accounted for`;
            return true;
        } else {
            hint.classList.remove('error', 'success');
            hint.textContent = `📝 ${remaining} questions remaining`;
            return true;
        }
    };
    
    input.addEventListener('input', function() {
        // Remove non-numeric characters
        this.value = this.value.replace(/[^0-9]/g, '');
        
        const value = parseInt(this.value) || 0;
        const siblingInput = this.id.includes('Correct') ? 
            document.getElementById(this.id.replace('Correct', 'Incorrect')) :
            document.getElementById(this.id.replace('Incorrect', 'Correct'));
        const siblingValue = parseInt(siblingInput.value) || 0;
        
        if (value > maxQuestions) {
            this.value = maxQuestions;
        }
        
        const isValid = updateHint(value, siblingValue);
        if (!isValid) {
            this.value = Math.max(0, maxQuestions - siblingValue);
            updateHint(parseInt(this.value) || 0, siblingValue);
        }
        
        calculateScores();
    });
    
    input.parentNode.appendChild(hint);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    font-size: 1.5rem;
}

/* Calculator Section */
.calculator-wrapper {
    padding: var(--space-lg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    margin: var(--space-lg) 0;
}

.calculator-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 2rem 0;
}

.calc-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-bottom: var(--space-lg);
}

.calc-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: var(--space-md);
    text-align: center;
}

/* Module Styling */
.module-group {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.module-group h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.input-groups {
    display: grid;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.input-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Error State Styling */
.input-group input.error {
    border-color: #ef4444;
    background-color: #fff5f5;
}

.input-group .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.input-group.has-error .error-message {
    display: block;
}

/* Success State */
.input-group.valid input {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Number Input Arrows */
.input-group input[type="number"] {
    -moz-appearance: textfield;
}

.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Questions Counter */
.questions-counter {
    background: var(--background);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.questions-counter.complete {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-sections {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .calculator-wrapper {
        padding: var(--space-md);
    }

    .calculator-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calc-section {
        padding: 1.5rem;
    }

    .module-group {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .calculator-wrapper {
        padding: var(--space-md);
        margin: 2rem 0;
    }

     /*Ronak*/
    .calc-section {
        /* padding: 1rem; */
        padding: unset;
        border: unset;
    }

    .module-group {
        /* padding: 1rem; */
        padding: unset;
        border: unset;
        margin-bottom:unset;
    }

    .calculator-sections{
        padding-top: 0;
    }
    .input-groups{
        gap: 0;
    }
    .questions-counter{
        padding: 0.5rem 0.5rem;
        font-size: 15px;
    }
    .calc-section{
        margin-bottom:0
    }
    .input-group{
        gap: unset;
        margin-bottom: 0;
    }
    .calc-section h2{
        margin-top:10px;
    }
    .main-list .sub-list{
        margin-left: 0;
    }
    .table-footer{
        flex-direction: row;
        flex-wrap: wrap;
    }
    .table-info{
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }
    .author-bio {margin-bottom: 0 !important;}
    /*Ronak */

    .input-group input {
        padding: 0.5rem;
    }
}

/* Score Cards */
.score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.score-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.score-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.score-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.score-card-header h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin: 0;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score.updating {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculate-btn {
        max-width: 100%;
        margin: 1.5rem auto;
    }

    .score-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Info Section */
.info-section {
    margin-top: 4rem;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-card-header h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0;
}

/* List Styles */
.feature-list, .main-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li, .main-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    color: var(--text-color);
}

.feature-list li::before, .main-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Sub List Styles */
.sub-list {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 var(--space-sm) var(--space-lg);
}

.sub-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--light-text);
}

.sub-list li::before {
    content: "◦";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

/* Author Section */
.author-section {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.author-profile {
    margin-top: 2rem;
}

.author-header {
    display: flex;
    gap: 2rem;
    margin-bottom: var(--space-lg);
}

.author-image {
    flex-shrink: 0;
}

.author-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-info h3 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: var(--space-xs);
}

.author-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.author-social {
    display: flex;
    gap: 1rem;
}

.author-social a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--primary-color);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.author-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.author-bio {
    grid-column: 1 / -1;
    margin-bottom: var(--space-lg);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.skills-list li {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-color);
    border: 1px solid #e2e8f0;
}

.experience-item {
    margin-bottom: 1rem;
}

.experience-title {
    font-weight: 600;
    color: var(--text-color);
}

.experience-org {
    color: var(--primary-color);
}

.experience-duration {
    font-size: 0.875rem;
    color: var(--light-text);
}

.author-philosophy blockquote {
    font-style: italic;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    .author-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    padding: var(--space-lg) 0;
    margin-top: var(--space-2xl);
    background-color: var(--light-gray);
    text-align: center;
}

.site-footer p {
    margin: var(--space-xs) 0;
}

.site-footer .footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .site-footer {
        padding: var(--space-md) 0;
    }

    .site-footer .footer-nav {
        flex-direction: column;
        align-items: center;
    }

    .site-footer .footer-nav a {
        margin-bottom: var(--space-xs);
    }
}

/* Input Hints */
.input-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.input-hint.error {
    color: #ef4444;
}

/* Content Section */
.content-section {
    margin: 3rem 0;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.content-section h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.policy-section {
    margin-bottom: var(--space-xl);
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.policy-section h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

.policy-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.policy-section ul {
    list-style: disc;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.policy-section ul li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-info {
    list-style: none !important;
    margin-left: 0 !important;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section h1 {
        font-size: 2rem;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }
}

/* Main List Styles */
.main-list {
    list-style: none;
    counter-reset: main-counter;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.main-list > li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    counter-increment: main-counter;
}

.main-list > li::before {
    content: counter(main-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--primary-color);
}

/* Sub List Styles */
.sub-list {
    list-style: none;
    counter-reset: sub-counter;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.sub-list > li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--light-text);
    counter-increment: sub-counter;
}

.sub-list > li::before {
    content: counter(sub-counter, lower-alpha) ".";
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
}

/* Link Styles */
.main-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-list > li {
        padding-left: 1.75rem;
    }
    
    .sub-list > li {
        padding-left: 2rem;
    }
    
    .sub-list > li::before {
        left: 0.75rem;
    }
}

/* Three Column Grid */
.info-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.info-card-three {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.info-card-three h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--light-text);
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .info-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: var(--space-lg);
    }
    
    .info-grid-three {
        grid-template-columns: 1fr;
    }
}

/* Calculate Button Styles */
.calculate-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.25);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.calculate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

/* Score Display Styles */
.score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.score-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.score-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.score-card-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.score-card-header h3 {
    font-size: 1.125rem;
    color: var(--text-color);
    margin: 0;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score.updating {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calculate-btn {
        max-width: 100%;
        margin: 1.5rem auto;
    }

    .score-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Table Styles */
.table-wrapper {
    margin: var(--space-lg) 0;
    overflow-x: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 1rem;
}

.score-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.score-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.score-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-color);
}

.score-table tbody tr:last-child td {
    border-bottom: none;
}

.score-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-wrapper {
        margin: 1.5rem -1.5rem;
        border-radius: 0;
    }
    
    .score-table th,
    .score-table td {
        padding: 0.75rem 1rem;
    }
    
    .score-table {
        font-size: 0.875rem;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .score-table th,
    .score-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Responsive Image */
@media (max-width: 768px) {
    .image-section {
        margin: 1.5rem -1.5rem;
    }
    
    .image-container {
        border-radius: 0;
    }
    
    .format-image {
        border-radius: 0;
    }
    
    figcaption {
        padding: 0.75rem 1rem;
    }
}

/* Image Loading State */
.format-image.loading {
    background: #f1f5f9;
    min-height: 400px;
}

/* Image Error State */
.format-image.error {
    background: #fee2e2;
    min-height: 400px;
}

/* Scoring Section Styles */
.scoring-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.scoring-type {
    background: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.scoring-type h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.scoring-type p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Formula Box Styles */
.formula-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: var(--space-lg) 0;
}

.formula-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.formula {
    font-family: 'Times New Roman', serif;
    font-size: 1.1rem;
    color: var(--text-color);
    padding: var(--space-md);
    background: var(--white);
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* Note Box Styles */
.note-box {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.note-box p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.note-box em {
    font-style: italic;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .scoring-type {
        padding: 1.5rem;
    }

    .formula-box {
        padding: 1rem;
    }

    .formula {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .note-box {
        padding: 1rem;
    }
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.entries-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entries-filter select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: var(--white);
}

/* Table Styles */
.table-wrapper {
    margin: 1rem 0;
    overflow-x: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.875rem;
}

.score-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.score-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.score-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.score-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 0;
}

.table-info {
    color: var(--light-text);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    background: var(--white);
    color: var(--text-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Privacy Policy Styles */
.privacy-policy {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.privacy-policy h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: var(--space-xl);
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.policy-section h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

.policy-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.policy-section ul {
    list-style: disc;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.policy-section ul li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-info {
    list-style: none !important;
    margin-left: 0 !important;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .privacy-policy {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .privacy-policy h1 {
        font-size: 2rem;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }

    .policy-section h3 {
        font-size: 1.1rem;
    }
}

/* Base Typography Spacing */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin: var(--space-lg) 0 var(--space-md);
}

h2 {
    font-size: 1.75rem;
    margin: var(--space-lg) 0 var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin: var(--space-md) 0 var(--space-xs);
}

p {
    margin: var(--space-sm) 0 var(--space-md);
    line-height: 1.6;
}

/* List Spacing */
ul, ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

li {
    margin-bottom: var(--space-xs);
}

/* Section Spacing */
.content-section {
    padding: var(--space-xl);
    margin: var(--space-2xl) 0;
}

/* Author Section Spacing */
.author-section {
    margin: var(--space-2xl) 0;
    padding: var(--space-xl);
}

.author-content {
    gap: var(--space-lg);
}

/* Privacy Policy Spacing */
.policy-section {
    margin-bottom: var(--space-xl);
}

.policy-section h2 {
    margin-bottom: var(--space-md);
}

.policy-section h3 {
    margin: var(--space-lg) 0 var(--space-sm);
}

.policy-section p,
.policy-section ul {
    margin-bottom: var(--space-md);
}

/* Footer Spacing */
.site-footer {
    padding: var(--space-lg) 0;
    margin-top: var(--space-2xl);
    background-color: var(--light-gray);
    text-align: center;
}

.site-footer p {
    margin: var(--space-xs) 0;
}

.site-footer .footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .content-section {
        padding: var(--space-lg);
    }
}

.hidden-section {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        display: none; /* Hide by default */
    }

    .main-nav.active {
        display: flex; /* Show when active */
    }

    .hamburger {
        display: block; /* Show hamburger icon */
    }
}

/* Global Spacing Variables */
:root {
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 0.75rem;   /* 12px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
}

/* Base Typography Spacing */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
    margin: var(--space-lg) 0 var(--space-md);
}

h2 {
    font-size: 1.75rem;
    margin: var(--space-lg) 0 var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin: var(--space-lg) 0 var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin: var(--space-md) 0 var(--space-xs);
}

p {
    margin: var(--space-sm) 0 var(--space-md);
    line-height: 1.6;
}

/* Form Elements */
input[type="text"], input[type="number"] {
    width: 100%;
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: var(--space-xs);
}

.breadcrumb span {
    margin-right: var(--space-xs);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .content-section {
        padding: var(--space-lg);
    }

    .table-wrapper {
        margin: var(--space-md) 0;
    }

    .score-table th,
    .score-table td {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 1.5rem;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: var(--space-md);
}

.main-nav ul li {
    list-style: none;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-nav ul {
        display: none; /* Hide links by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: var(--space-md);
        z-index: 1000;
    }

    .main-nav.active ul {
        display: flex; /* Show links when active */
    }

    .hamburger {
        display: block; /* Show hamburger icon */
    }
}