@scope (#original-content) {

        #percentage-marks-calculator-section * {
            box-sizing: border-box;
        }

        #percentage-marks-calculator-section h1 {
            font-size: 32px;
            font-weight: 800;
            color: #1a1a1a;
            margin-bottom: 15px;
            text-align: center;
            line-height: 1.3;
        }

        #percentage-marks-calculator-section h2 {
            font-size: 24px;
            font-weight: 700;
            color: #2c3e50;
            margin-top: 35px;
            margin-bottom: 15px;
            border-bottom: 3px solid #f59e0b;
            padding-bottom: 8px;
        }

        #percentage-marks-calculator-section h3 {
            font-size: 20px;
            font-weight: 700;
            color: #34495e;
            margin-top: 25px;
            margin-bottom: 12px;
        }

        #percentage-marks-calculator-section p {
            font-size: 16px;
            line-height: 1.7;
            color: #444;
            margin-bottom: 15px;
            font-weight: 500;
        }

        #percentage-marks-calculator-section .author-date {
            text-align: center;
            font-size: 14px;
            color: #666;
            margin-bottom: 25px;
            font-weight: 600;
        }

        .pm-calculator-container {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #fbbf24;
            border-radius: 12px;
            padding: 30px;
            margin: 25px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .pm-mode-selector {
            display: flex;
            gap: 12px;
            margin-bottom: 25px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .pm-mode-btn {
            padding: 10px 20px;
            background-color: #ffffff;
            border: 2px solid #f59e0b;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            color: #f59e0b;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 160px;
            max-width: 220px;
        }

        .pm-mode-btn:hover {
            background-color: #f59e0b;
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
        }

        .pm-mode-btn.active {
            background-color: #f59e0b;
            color: #ffffff;
            box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
        }

        .pm-input-group {
            margin-bottom: 20px;
        }

        .pm-input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 700;
            color: #2c3e50;
            font-size: 15px;
        }

        .pm-input-group input,
        .pm-input-group select {
            width: 100%;
            padding: 14px;
            border: 2px solid #bdc3c7;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            transition: border-color 0.3s ease;
            background-color: #ffffff;
        }

        .pm-input-group input:focus,
        .pm-input-group select:focus {
            outline: none;
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        }

        .pm-two-column {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .pm-subject-entry {
            background: #ffffff;
            border: 2px solid #fbbf24;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .pm-subject-entry h5 {
            margin: 0 0 10px 0;
            color: #d97706;
            font-weight: 800;
            font-size: 15px;
        }

        .pm-add-subject-btn {
            width: 100%;
            padding: 12px;
            background: #ffffff;
            border: 2px dashed #f59e0b;
            border-radius: 8px;
            color: #f59e0b;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 15px;
        }

        .pm-add-subject-btn:hover {
            background: #fef3c7;
            border-color: #d97706;
        }

        .pm-calc-button {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 800;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .pm-calc-button:hover {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
        }

        .pm-results-container {
            margin-top: 25px;
            padding: 25px;
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            border: 2px solid #3b82f6;
            border-radius: 10px;
            display: none;
        }

        .pm-results-container.show {
            display: block;
        }

        .pm-main-result {
            background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%);
            border: 3px solid #f59e0b;
            border-radius: 10px;
            padding: 25px;
            text-align: center;
            margin-bottom: 20px;
        }

        .pm-main-result h4 {
            color: #d97706;
            font-weight: 800;
            margin: 0 0 15px 0;
            font-size: 18px;
            text-transform: uppercase;
        }

        .pm-main-result .score {
            font-size: 48px;
            color: #f59e0b;
            font-weight: 800;
            margin: 15px 0;
        }

        .pm-breakdown {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 20px;
            border: 2px solid #fbbf24;
            margin-top: 20px;
        }

        .pm-breakdown h5 {
            color: #d97706;
            font-weight: 800;
            margin: 0 0 15px 0;
            font-size: 17px;
        }

        .pm-detail-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #fef3c7;
            font-weight: 600;
        }

        .pm-detail-item:last-child {
            border-bottom: none;
        }

        .pm-detail-item .label {
            color: #374151;
        }

        .pm-detail-item .value {
            color: #f59e0b;
            font-weight: 800;
        }

        .formula-box {
            background-color: #fef3c7;
            border: 2px solid #f59e0b;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
            font-weight: 600;
        }

        .formula-box h4 {
            color: #d97706;
            margin-bottom: 12px;
            font-weight: 800;
            font-size: 18px;
        }

        .example-box {
            background-color: #eff6ff;
            border: 2px solid #3b82f6;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }

        .example-box h4 {
            color: #1e40af;
            margin-bottom: 12px;
            font-weight: 800;
            font-size: 18px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background-color: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        table th {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: #ffffff;
            padding: 14px;
            text-align: left;
            font-weight: 800;
            font-size: 15px;
        }

        table td {
            padding: 12px 14px;
            border-bottom: 1px solid #ecf0f1;
            font-weight: 600;
            color: #2c3e50;
        }

        table tr:hover {
            background-color: #fef3c7;
        }

        ul,
        ol {
            margin: 15px 0;
            padding-left: 25px;
        }

        ul li,
        ol li {
            margin-bottom: 10px;
            font-weight: 600;
            color: #444;
            line-height: 1.6;
        }

        .highlight-box {
            background-color: #fef9c3;
            border-left: 5px solid #eab308;
            padding: 18px;
            margin: 20px 0;
            border-radius: 6px;
        }

        .highlight-box strong {
            color: #854d0e;
            font-weight: 800;
        }

        .info-box {
            background-color: #fef3c7;
            border-left: 5px solid #f59e0b;
            padding: 18px;
            margin: 20px 0;
            border-radius: 6px;
        }

        .info-box strong {
            color: #d97706;
            font-weight: 800;
        }

        @media (max-width: 768px) {
            #percentage-marks-calculator-section h1 {
                font-size: 26px;
            }

            #percentage-marks-calculator-section h2 {
                font-size: 21px;
            }

            #percentage-marks-calculator-section h3 {
                font-size: 18px;
            }

            .pm-calculator-container {
                padding: 20px;
            }

            .pm-two-column {
                grid-template-columns: 1fr;
            }

            .pm-calc-button {
                font-size: 16px;
                padding: 14px;
            }

            .pm-mode-btn {
                min-width: 100%;
            }

            .pm-main-result .score {
                font-size: 36px;
            }

            table {
                font-size: 14px;
            }

            table th,
            table td {
                padding: 10px 8px;
            }
        }

        @media (max-width: 480px) {
            #percentage-marks-calculator-section {
                padding: 15px;
            }

            #percentage-marks-calculator-section h1 {
                font-size: 22px;
            }
        }
    
}
