:root {
            --primary: #2c3e50;
            --primary-light: #34495e;
            --secondary: #e74c3c;
            --accent: #3498db;
            --light: #ecf0f1;
            --dark: #2c3e50;
            --gray: #95a5a6;
            --success: #2ecc71;
            --border-radius: 10px;
            --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            --max-width: 1200px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .main-container {
            background-color: #f9f9f9;
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
            padding: 0;
            display: flex;
            flex-direction: column;
        }

        .container {
            width: 100%;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 20px;
        }

        .header-title {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 40px 20px;
            text-align: center;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
            font-weight: 800;
        }

        .subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
            max-width: 700px;
            margin: 0 auto;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }

        @media (max-width: 900px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }

        .converter-section {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 30px;
            transition: var(--transition);
        }

        .converter-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .section-title {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
            color: #3192f3;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .section-title i {
            margin-right: 15px;
            color: var(--accent);
            font-size: 1.8rem;
        }

        .input-group {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 15px;
            margin-bottom: 20px;
        }

        input, select {
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 1.1rem;
            transition: var(--transition);
        }

        input:focus, select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        button {
            background: var(--accent);
            color: white;
            border: none;
            padding: 15px 25px;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

        button:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        button i {
            margin-right: 10px;
        }

        .result-display {
            background: var(--light);
            padding: 20px;
            border-radius: var(--border-radius);
            margin-top: 20px;
            text-align: center;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            min-height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .result-label {
            font-size: 1rem;
            color: var(--gray);
            margin-bottom: 10px;
            font-weight: 400;
        }

        .action-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 20px;
        }

        .secondary-button {
            background: var(--light);
            color: var(--dark);
        }

        .secondary-button:hover {
            background: #dfe6e9;
        }

        .history-section {
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px dashed #ddd;
        }

        .history-title {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            color: #3192f3;
            font-weight: 600;
        }

        .history-title i {
            margin-right: 10px;
            color: var(--accent);
        }

        .history-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
        }

        .history-item {
            background: var(--light);
            padding: 10px;
            border-radius: var(--border-radius);
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }

        .history-item:hover {
            background: #dfe6e9;
            transform: translateY(-3px);
        }

        .history-value {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--primary);
        }

        .history-type {
            font-size: 0.8rem;
            color: var(--gray);
            margin-top: 5px;
        }

        .info-section {
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 30px;
            margin-top: 30px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 20px;
        }

        .info-card {
            padding: 20px;
            border-radius: var(--border-radius);
            background: var(--light);
            transition: var(--transition);
        }

        .info-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .info-card h3 {
            color: #3192f3;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }

        .info-card h3 i {
            margin-right: 10px;
            color: var(--accent);
        }

        .examples-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        .examples-table th, .examples-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }

        .examples-table th {
            background: var(--primary);
            color: white;
        }

        .examples-table tr:nth-child(even) {
            background: #f2f2f2;
        }

        

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 25px;
            background: var(--success);
            color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transform: translateX(150%);
            transition: transform 0.3s ease;
            z-index: 1000;
            display: flex;
            align-items: center;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification i {
            margin-right: 10px;
        }

        .switch-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--accent);
        }

        input:focus + .slider {
            box-shadow: 0 0 1px var(--accent);
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        .dark-mode {
            background-color: #1a1a1a;
            color: #f0f0f0;
        }

        .dark-mode .converter-section,
        .dark-mode .info-section {
            background-color: #2d2d2d;
            color: #f0f0f0;
        }

        .dark-mode input,
        .dark-mode select {
            background-color: #3d3d3d;
            color: #f0f0f0;
            border-color: #4d4d4d;
        }

        .dark-mode .result-display {
            background-color: #3d3d3d;
            color: #f0f0f0;
        }

        .dark-mode .history-item {
            background-color: #3d3d3d;
            color: #f0f0f0;
        }

        .dark-mode .info-card {
            background-color: #3d3d3d;
            color: #f0f0f0;
        }

        .dark-mode .examples-table tr:nth-child(even) {
            background-color: #3d3d3d;
        }

        @media (max-width: 600px) {
            h1 {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .input-group {
                grid-template-columns: 1fr;
            }
            
            .action-buttons {
                grid-template-columns: 1fr;
            }
            
            button {
                width: 100%;
            }
        }

/* ===== ARTICLE SPECIFIC STYLES - NO BODY STYLES ===== */
#roman-guide-article {
      width: 95%;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem 1.5rem;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    /* Hero Section */
    .roman-guide-hero {
      text-align: center;
      margin-bottom: 2.5rem;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
      border-radius: 32px;
      box-shadow: 0 12px 30px rgba(44, 62, 80, 0.3);
    }

    .roman-guide-hero h2 {
      font-size: 2.6rem;
      font-weight: 800;
      color: white;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      font-family: 'Montserrat', serif;
    }

    .roman-guide-hero .roman-hero-sub {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.9);
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.5;
    }

    .roman-guide-meta {
      display: flex;
      justify-content: center;
      gap: 2rem;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      margin-top: 1.2rem;
      flex-wrap: wrap;
    }

    .roman-guide-meta span i {
      margin-right: 0.5rem;
    }

    /* Main Content */
    .roman-main-content {
      background: white;
      border-radius: 28px;
      padding: 2rem 2rem 2.5rem 2rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(44, 62, 80, 0.15);
    }

    .roman-main-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #2c3e50;
      border-left: 5px solid #e74c3c;
      padding-left: 1rem;
      font-family: 'Montserrat', serif;
    }

    .roman-main-content h2:first-of-type {
      margin-top: 0;
    }

    .roman-main-content h3 {
      font-size: 1.35rem;
      font-weight: 600;
      margin: 1.5rem 0 0.75rem 0;
      color: #e74c3c;
    }

    .roman-main-content p {
      font-size: 1.05rem;
      color: #2d3748;
      margin-bottom: 1.2rem;
      line-height: 1.6;
    }

    .roman-main-content ul, .roman-main-content ol {
      margin: 1rem 0 1.2rem 1.8rem;
      color: #2d3748;
      line-height: 1.6;
    }

    .roman-main-content li {
      margin-bottom: 0.5rem;
    }

    .roman-highlight-box {
      background: linear-gradient(135deg, rgba(44, 62, 80, 0.08), rgba(231, 76, 60, 0.05));
      border-left: 6px solid #e74c3c;
      padding: 1.25rem 1.5rem;
      border-radius: 20px;
      margin: 1.75rem 0;
    }

    .roman-pro-tip {
      background: rgba(231, 76, 60, 0.1);
      border-radius: 20px;
      padding: 1.2rem 1.5rem;
      margin: 1.5rem 0;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      border: 1px solid rgba(44, 62, 80, 0.3);
    }

    .roman-pro-tip i {
      font-size: 1.8rem;
      color: #e74c3c;
    }

    .roman-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.2rem;
      margin: 2rem 0;
    }

    .roman-stat-card {
      background: #f8f9fa;
      border-radius: 20px;
      padding: 1.2rem;
      text-align: center;
      transition: all 0.2s;
      border: 1px solid rgba(44, 62, 80, 0.2);
    }

    .roman-stat-card .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: #2c3e50;
      margin-bottom: 0.25rem;
    }

    .roman-quote-block {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 24px;
      text-align: center;
      font-style: italic;
      margin: 1.5rem 0;
      border: 1px solid rgba(44, 62, 80, 0.2);
    }

    .roman-quote-block i {
      font-size: 2rem;
      color: #e74c3c;
      margin-bottom: 0.5rem;
      display: inline-block;
    }

    .roman-table-wrapper {
      overflow-x: auto;
      margin: 1.5rem 0;
    }

    .roman-values-table {
      width: 100%;
      border-collapse: collapse;
      background: #f8f9fa;
      border-radius: 16px;
      overflow: hidden;
    }

    .roman-values-table th, .roman-values-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid rgba(44, 62, 80, 0.2);
    }

    .roman-values-table th {
      background: rgba(44, 62, 80, 0.1);
      font-weight: 600;
      color: #2c3e50;
    }

    .roman-values-table tr:hover {
      background: rgba(231, 76, 60, 0.05);
    }

    .roman-rules-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
      margin: 1.5rem 0;
    }

    .roman-rule-card {
      background: #f8f9fa;
      border-radius: 16px;
      padding: 1.2rem;
      border: 1px solid rgba(44, 62, 80, 0.2);
      transition: all 0.2s;
    }

    .roman-rule-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(44, 62, 80, 0.1);
    }

    .roman-rule-title {
      font-weight: 700;
      color: #2c3e50;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .roman-footer-note {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.85rem;
      color: #718096;
      border-top: 1px solid #e2e8f0;
      padding-top: 2rem;
    }

    @media (max-width: 768px) {
      .roman-guide-hero h2 {
        font-size: 2rem;
      }
      .roman-main-content {
        padding: 1.5rem;
      }
      #roman-guide-article {
        padding: 1rem;
      }
    }